摘要: 于上一个版本的区别,把事件处理简化:<?phpclassEventextendsstdClass{public$target=null;public$type=null;/***创建事件*@paramstring$type*/publicfunction__construct($type){$this->type=trim($type);}/***得到事件字符串*/publicfunction__toString(){return$this->type;}}abstractclassEventDispatcher{private$_callback_method;/***添加 阅读全文
posted @ 2011-03-22 16:10 liushan 阅读(748) 评论(0) 推荐(0)