Zhamao Framework  3.0.0-beta1
A high-performance chatbot + web framework
ZMApplication类 参考
类 ZMApplication 继承关系图:
[图例]
ZMApplication 的协作图:
[图例]

Public 成员函数

 __construct (mixed $dir=null)
 
 withConfig (array $config)
 
 withArgs (array $args)
 
 run ()
 
- Public 成员函数 继承自 ZMPlugin
 __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 属性 继承自 ZMPlugin
string $dir
 
array $bot_events = []
 
array $bot_commands = []
 
array $events = []
 
array $routes = []
 

构造及析构函数说明

◆ __construct()

__construct ( mixed  $dir = null)
函数调用图:

成员函数说明

◆ run()

run ( )
异常

◆ withArgs()

withArgs ( array  $args)

◆ withConfig()

withConfig ( array  $config)

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