I have created a template engine similar to the Zend Framework MVC (mostly the views), where I have a class similar to:
class foo
{
private $bar;
...
some __set(), etc
...
function getView($file)
{
include($file);
}
}
|
Now, when we include the file in the getView function, it will have the same variable scope of the class for variables, so inside of $file we can access the variables from the class, ie: $this->bar. But inside of $file, the intellisense doesn't pickup $this->bar, like it would if we referenced it inside that class declaration file.
Now, I understand PHPEd probably won't, on its own, understand that $file will be part of class foo, but is there a way for me to instruct it so I can get the intellisense on those class vars?
Thanks!