How can you get the Eclipse code for CI when using & get_instance ()?

I am currently using Eclipse PDT and CodeIgniter, is it possible to get code completion for the session library as follows:

$CI = &get_instance();
$CI->session->se   (No auto-completion here.)

Also, is there some kind of plugin (or just a method) that will allow eclipse to do this for all my CodeIgniter libraries.

Note: I already have support in most of the contexts kindly provided by this tutorial , however I am looking specifically for when I use the CodeIgniter reference variable instead

$this->

Thank,

Lemiant

+5
source share
1 answer

; . , , PHPDoc, , - , , $CI CI_Base. :

/**
 * @var CI_Base
 */
private $CI;

voila, (: , $this- > CI- > - .)

, -,

Lemiant

+2

All Articles