AddonModel::getAddonObj PHP Method

getAddonObj() public method

通过插件ID获取插件对象
public getAddonObj ( integer $id ) : object
$id integer 插件ID
return object 指定插件对象
    public function getAddonObj($id)
    {
        $data = $this->getAddon($id);
        if ($data) {
            $this->_getFileAddons();
            return $this->fileAddons[$data['name']];
        }
        return false;
    }