![]() |
| Code completion with different scope |
|
I think you just have to properly tag the template member variable with phpdoc comments.
|
||||||||||||
|
|
|||||||||||||
|
I doubt that. The editor doesn't even know i'm in the engine scope, so tagging the template member in the engine object won't work. |
||||||||||||||
|
|
|||||||||||||||
|
ahh.. seems like you are creating your action object dynamically. could you post some (pseudo-)code?
|
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
To Nielsz:
Make sure all the directories with your php source files are either in the project tree (in or below project's root directory) or they are listed in the Code Insight Includes list (see project properties). It's sufficient to list only top directories in this list, they are scanned recursively. |
||||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||||
|
a quick example of my code:
site.php?action=login
engine.class:
login.action.php:
In login.action.php, I now have the "this" object, which is the engine object. But if I type "$this->" and try to complete it, the message: " Code completion is not available due to the following error(s): Failed to identify type of "$this" global variable" So, the problem is not that the files are not in my Code Insight Include List. |
||||||||||||||||||
|
|
|||||||||||||||||||
|
Site Admin
|
If at that point $this contains an instance of specific class, you can put PHPDOC comment about it (see post about type hints on FAQ forum). If you can't point to a specific class, it means that your code is too dynamic and even you do not know the class name, needless to say that Code Insight can't guess it too |
||||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||||
|
Ok, that solves half!
Thanks. in my actionfile I have set this:
In my engine class I have documented customer and factory:
Strange, because I declared the factory member as objectfactory. |
||||||||||||||||||
|
|
|||||||||||||||||||
|
Site Admin
|
I tried to reproduce the problem but it constantly works well
Look at this:
Would be nice if you compose a sample that replicates the problem you encountered. |
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
|
nuspheretext.php
nuspheretestaction.php
In Nuspheretest.php in the $engine->parse method, all works perfect, but in nuspheretestaction.php, the same doesn't work. |
||||||||||||||||
|
|
|||||||||||||||||
|
Hi Dmitri,
were you able to reproduce it? |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
Hi Nielsz,
yes, sure, I was able to get it. Now it needs our developer's time to get fixed |
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
| Code completion with different scope |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed