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
672 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:Richard Quadling
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:Richard Quadling
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

776 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