Welcome Guest, Not a member yet? Register   Sign In
eclipse 3.5 IDE phpDoc autogenerate problem
#1

[eluser]Shiro[/eluser]
Hi Everyone,
I had been using eclipse 3.5 PDT for several month, recently I just start with CI.

I have a problem which is using eclipse to auto generate phpDoc.

here is the scenario:
Code:
<?php
class MReports extends Model{

    /**                        //<- start auto generate when I type /** [Enter]
     *
     * Oct 2, 2009
     * @return unknown_type  
     */                         //<-end
    function __construct(){
        parent::Model();
    }
    
    /**                        //<- start auto generate when I type /** [Enter]
     * /**
     *
     */
     */                        //<-end
    function index(){
        
    }
    
}

for the __construct it will auto generate the phpDoc comment for me, but for index function it won't

scenario 2:

Code:
&lt;?php

    /**                        //<- start auto generate when I type /** [Enter]
     *
     * Oct 2, 2009
     * @return unknown_type  
     */                        //<-end
    function __construct(){
        parent::Model();
    }
    

    /**                        //<- start auto generate when I type /** [Enter]
     *
     * Oct 2, 2009
     * @return unknown_type  
     */                        //<-end
    function index(){
        
    }

When I remove the class that line, the phpDoc works again, how to fix this problem?


scenario 3:

Code:
&lt;?php
class MReports extends Model{

    /**                        //<- start auto generate when I type /** [Enter]
     *
     * Oct 2, 2009
     * @return unknown_type  
     */                         //<-end
    function __construct(){
        parent::Model();
    }
    
    /**                        //<- start auto generate when I type /** [Enter]
     *
     * Oct 2, 2009
     * @return unknown_type  
     */                         //<-end
    static function index(){
        
    }
    
}

to enable the phpDoc work inside a class, I have to create a "static" function, but I don't think this is a good solution.

Any idea?


Messages In This Thread
eclipse 3.5 IDE phpDoc autogenerate problem - by El Forum - 10-01-2009, 08:00 PM
eclipse 3.5 IDE phpDoc autogenerate problem - by El Forum - 10-07-2009, 01:21 AM
eclipse 3.5 IDE phpDoc autogenerate problem - by El Forum - 02-01-2010, 08:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB