|
Zhamao Framework 3.2.4
A high-performance chatbot + web framework
|
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 | ( | string | $name, |
| string | $version = '1.0-dev', |
||
| string | $description = '', |
||
| int | $plugin_type = ZM_PLUGIN_TYPE_NATIVE, |
||
| ?string | $root_dir = null |
||
| ) |
| bindEntity | ( | ZMPlugin | $plugin | ) |
| disablePlugin | ( | ) |
| enablePlugin | ( | ) |
| getAutoloadFile | ( | ) |
获取该插件的 Composer 自动加载文件(如果存在的话)
| getAutoloadPsr4 | ( | ) |
获取该插件的 Composer 自动加载 PSR-4 列表
| PluginException | 无法加载 composer.json 时抛出异常 |
| getDescription | ( | ) |
| getEntity | ( | ) |
| getEntryFile | ( | ) |
获取该插件的入口文件(如果存在的话)
| getName | ( | ) |
| getPluginType | ( | ) |
| getRootDir | ( | ) |
| getVersion | ( | ) |
| isEnabled | ( | ) |
| jsonSerialize | ( | ) |
| setRootDir | ( | string | $root_dir | ) |