Code completion - phpdoc @property and @property-read |
Guru master
|
PhpED has support for these since quite some time.
The reason it doesn't work for you is because the "official syntax" for them is to use php-variable syntax for the property name, like so:
Have a good one! |
||||||||||||||
|
|
Hi Blizz, thanks. It was just a typo in this forum, I am using official syntax with '$' befeor names. And YES! you are rigth, code hinting is working in this example. But what is not working:
Is there some workaround? |
||||||||||||||||||
|
Site Admin
|
Hmm, why do you ignore Blizz then? This is wrong: /** * @property width */ This is correct: /** * @property $width */ for further details please read this http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.property.pkg.html |
||||||||||||||
_________________ The PHP IDE team |
|
Please look at stackoverflow.com search for "cakephp code completion ide" and pick the first result.
Here i have described how to use @property-read to get Autocompletion working for $this. Only detail is that the methods of the last class in the chain are not listed at the top of the list. Example When i want to call $this->Project->Country->getCountryName($countryId), then i would like the top of the list to show methods for the Country class when i type $this->Project->Country->. Is there anyway to achieve this ? |
||||||||||||
|
Site Admin
|
I'm not sure what you wanted me to find at stackoverflow.
Seems you want nested properties and calls to be accessible. No problem. For the sake of demonstrating how it works in PhpED, see screenshots below. First you have to define "virtual" property using supported syntax, ...and it will be picked in code completion: After the property is entered, you can use it further, for example in nested calls like shown here: |
||||||||||||
_________________ The PHP IDE team |
Code completion - phpdoc @property and @property-read |
|
||
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