摘要: author = $author; $this->title = $title; } public function getTitle(){ return $this->title; } public function getAuthor(){ return $this->author; ... 阅读全文
posted @ 2014-11-10 22:11 tai君 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 11月10日:最近在看设计模式,争取把23种设计模式都用php写个示例。但是网上php实现的还是比较少,而且就算有例子也不太满意,倒是其他语言写的还不错。于是最近看了很多其他的语言编写的程序,其实都差不多。以后如果有时间,学一下其他面向对象的语言吧,c++甚好。11月12日:终于把23种设计模式过了... 阅读全文
posted @ 2014-11-10 15:04 tai君 阅读(241) 评论(0) 推荐(0) 编辑
摘要: mediator = $mediator; } public function send($message){ $this->mediator->send($message,$this); } abstract function notify($message);}//具体的同事类a b c ... 阅读全文
posted @ 2014-11-10 14:41 tai君 阅读(308) 评论(0) 推荐(0) 编辑