Zhamao Framework 3.2.4
A high-performance chatbot + web framework
载入中...
搜索中...
未找到
PluginMeta类 参考
类 PluginMeta 继承关系图:
[图例]
PluginMeta 的协作图:
[图例]

Public 成员函数

 __construct (string $name, string $version='1.0-dev', string $description='', int $plugin_type=ZM_PLUGIN_TYPE_NATIVE, ?string $root_dir=null)
 
 enablePlugin ()
 
 disablePlugin ()
 
 isEnabled ()
 
 bindEntity (ZMPlugin $plugin)
 
 getEntryFile ()
 
 getAutoloadFile ()
 
 getAutoloadPsr4 ()
 
 getName ()
 
 getVersion ()
 
 getDescription ()
 
 getRootDir ()
 
 setRootDir (string $root_dir)
 
 getPluginType ()
 
 jsonSerialize ()
 
 getEntity ()
 

详细描述

插件的元信息对象

构造及析构函数说明

◆ __construct()

__construct ( string  $name,
string  $version = '1.0-dev',
string  $description = '',
int  $plugin_type = ZM_PLUGIN_TYPE_NATIVE,
?string  $root_dir = null 
)

成员函数说明

◆ bindEntity()

bindEntity ( ZMPlugin  $plugin)

◆ disablePlugin()

disablePlugin ( )

◆ enablePlugin()

enablePlugin ( )

◆ getAutoloadFile()

getAutoloadFile ( )

获取该插件的 Composer 自动加载文件(如果存在的话)

函数调用图:

◆ getAutoloadPsr4()

getAutoloadPsr4 ( )

获取该插件的 Composer 自动加载 PSR-4 列表

异常
PluginException无法加载 composer.json 时抛出异常
函数调用图:

◆ getDescription()

getDescription ( )

◆ getEntity()

getEntity ( )

◆ getEntryFile()

getEntryFile ( )

获取该插件的入口文件(如果存在的话)

函数调用图:

◆ getName()

getName ( )

◆ getPluginType()

getPluginType ( )

◆ getRootDir()

getRootDir ( )

◆ getVersion()

getVersion ( )

◆ isEnabled()

isEnabled ( )

◆ jsonSerialize()

jsonSerialize ( )

◆ setRootDir()

setRootDir ( string  $root_dir)

该类的文档由以下文件生成: