Solved

eclipse pdt how to assign object to private variable, so code assist help you to finish up names

Posted on 2010-08-16
6
668 Views
Last Modified: 2013-12-17
How do you make eclipse see certain variable as an object?

Variable is passed in the constructor as an object.

I want code assist work with this -> variable as $object-> variable

for instance:
method
$this->shop->checkIfEverythimgIsOkWithOrder();

I don't get help from code assist to finish function name, when it's actually usefull when names of methods are long.
The other problem is that when I hold ctrl button it does not highlight function and does not move me there after clicking with ctrl :( :(

Can anybody help?

0
Comment
Question by:vidda22
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
AlexanderR earned 500 total points
ID: 33476706
Always explicitly describe every class property manually using phpdoctype and not rely on IDE to guess it.

/**
 * @var ShopClassName
 */
private $shop;
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 33485682
Just a few links that assist here. Once you get to adding these doc blocks, you can then build you own documentation SO much easier. By doing it all inline, you can make sure that what you've said the code will do at least bear some resemblance to what the code actually does.

http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_elements.pkg.html

http://pear.php.net/package/PhpDocumentor
0
 

Author Comment

by:vidda22
ID: 33485894
Many thanks! Very usefull! I never understood to much about php documentator, now I know where to start!
Good man!!
0
 
LVL 40

Expert Comment

by:RQuadling
ID: 33486016
If you like pretty documentation, then there is a skin available which produced ExtJS styled documentation. Looks great!!!

http://code.google.com/p/zym/downloads/list?can=1&q=Package-PHPDocExtjs&colspec=Filename+Summary+Uploaded+Size+Package

There are a few issues with it (http://code.google.com/p/zym/issues/list), some have patches supplied.

But overall, this is an excellent looking skin for your documentation.
CamelotWebServicesManual.png
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now