|
Zhamao Framework
3.0.0-beta1
A high-performance chatbot + web framework
|
Public 成员函数 | |
| __construct (string $dir) | |
| getDir () | |
| addBotEvent (BotEvent $event) | |
| addBotCommand (BotCommand $command) | |
| addEvent (string $event_name, callable $callback, int $level=20) | |
| addHttpRoute (Route $route) | |
| getBotEvents () | |
| getBotCommands () | |
| getEvents () | |
| getRoutes () | |
Protected 属性 | |
| string | $dir |
| array | $bot_events = [] |
| array | $bot_commands = [] |
| array | $events = [] |
| array | $routes = [] |
单文件插件声明类
| __construct | ( | string | $dir | ) |
| addBotCommand | ( | BotCommand | $command | ) |
| addBotEvent | ( | BotEvent | $event | ) |
| addEvent | ( | string | $event_name, |
| callable | $callback, | ||
| int | $level = 20 |
||
| ) |
| addHttpRoute | ( | Route | $route | ) |
| getBotCommands | ( | ) |
| getBotEvents | ( | ) |
| getDir | ( | ) |
| getEvents | ( | ) |
| getRoutes | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |