PHPDoc under eclipse Topic is solved

For discussion about specific tools of the trade and other assorted items needed to equip the joombie with everything they need to embark on their developer journeys.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
palino

PHPDoc under eclipse

Post by palino » Sun Mar 23, 2008 11:23 pm

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

Post Reply