Professional PHP5 code for this book

源代码在线查看: class.dispatcher.php

软件大小: 73 K
上传用户: Fiona1207
关键词: Professional PHP5 code book
下载地址: 免注册下载 普通下载 VIP

相关代码

								require_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!";				      }				   }				}				?>							

相关资源