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
670 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Healthcheck 2 85
what is best version of php to use 6 46
Use PHPSESSID or create new session when user visits page for the first time 4 37
html input type 3 22
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

910 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

24 Experts available now in Live!

Get 1:1 Help Now