摘要:
```php class md5_filter extends php_user_filter{ public function filter($in,$out,&$consumed,$closing){ while($bucket = stream_bucket_make_writeable($in)){ $buck... 阅读全文
摘要:
//全局相关php artisan:显示详细的命令行帮助信息,同 php artisan listphp artisan –help:显示帮助命令的使用格式,同 php artisan helpphp artisan –version:显示当前使用的 Laravel 版本php artisan ch... 阅读全文
摘要:
_handler = $handler; } protected function _success($request){ echo $request->getName(),'request was passed '; return true; } abstract functi... 阅读全文
摘要:
一.首先去官网下载对应的的mongodb ,本人的操作系统是win7 64位 mongodb-win32-x86_64-2.0.6.rar 解压安装:进入到bin目录下,会看到N多的.exe文件二.启动mongodb mongod.exe --dbpath=d:\mongo\data\db --l... 阅读全文
摘要:
装饰器模式_weapon = $weapon; } public function cost(){ return $this->_weapon->cost() + $this->_price; } public function descript... 阅读全文
摘要:
适配器模式'; }}//类适配器模式class Adapter implements Target{ private $adatee; public function __construct(Adatee $adatee){ $this->adatee = $adat... 阅读全文
摘要:
观察者模式_observers[] = $sub; } //外部统一调用 public function trigger(){ if(!empty($this->_observers)){ ... 阅读全文
摘要:
策略模式getTrafic(); } } $trafics = new Trafic(); $trafics->useTrafic(new bikeStrategy());?> 阅读全文