Page 1 of 1

PHPDoc under eclipse

Posted: Sun Mar 23, 2008 11:23 pm
by palino
Hello

As beginning Joomla! developer, I would appreciate every bit of help IDE can offer. I'm having little problem with PHPDocumentator and code completion under eclipse IDE. Looking up for every class definition in code is very time-consuming, so here is the problem
  1. Object return value

    Code: Select all

    	/**
    	 * @return object JApplication
    	 */
    In this case PHPDoc treats returned value as instance of object class.

    Code: Select all

    	/**
    	 * @return JApplication
    	 */
    does (correctly) treat returned object as instance of JApplication class, but I don't want to rewrite every single doc string in application
  2. Class methods

    Code: Select all

    $mainframe =& JFactory::getApplication('site');
    PHPDoc will treat $mainframe as instance of JFactory class, and not JApplication, as it should do, while

    Code: Select all

     $factory = new JFactory();
    $mainframe =& $factory->getApplication('site');
    works well.
Could someone help me, how to set eclipse to treat the two things right?

If it is important, I'm using
Version: 3.3.0
Build id: I20070625-1500

with XDebug 0.2.3