Codeigniter的Nusphere PhpEd代码洞察


Nusphere PhpEd code insight for Codeigniter

我想知道是否有一种方法可以使用@var@property在Nusphere PhpEd中为Codeigniter中的get_instance()定义代码洞察。

一个例子是:

// Define @property for Codeigniter object?
class Example
{
    // Define @var for Codeigniter object?
    var $ci;
    public function __construct()
    {
        $this->ci =& get_instance();
    }
    public function test($var)
    {
        $this->ci-> //I want to load Codeigniter insight here
    }
}

如果我扩展CI_Controller类(class Example extends CI_Controller),那么我可以使用$this->来获得Codeigniter对象。。。但我不想扩展CI_Controller类(不想从父类继承任何东西)

任何帮助都将不胜感激!提前感谢!

您要查找的内容;

https://gist.github.com/topdown/1697338

干杯