📄 class.dispatcher.php
字号:
<?phprequire_once('class.Event_Handler.php');require_once('class.Handler_View.php');require_once('class.Handler_Edit.php');class Dispatcher { private $handle; function __construct($event_handle){ $this->handle = $event_handle; } function handle_the_event(){ $name = "handler_{$this->handle}"; if (class_exists("$name")){ $handler_obj = new $name($this->handle); $response = $handler_obj->handled_event(); return $response; }else{ echo "I can't handle this!"; } }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -