摘要: public_key = file_get_contents($public_key_file)) || false == ($this->private_key = file_get_contents($private_key_file))) { throw new ... 阅读全文
posted @ 2015-07-30 19:27 扬空 阅读(1871) 评论(0) 推荐(0) 编辑
摘要: color = $color; } public function clone_self() { $obj = clone $this; $obj->color = clone $obj->color; //深复制 复制对象已持有的对象 retu... 阅读全文
posted @ 2015-07-08 21:38 扬空 阅读(130) 评论(0) 推荐(0) 编辑
摘要: op_num_1 + $this->op_num_2,chr(10); }}/** * 执行具体运算的减法类 */class op_subtract extends op { public function get_result() { echo $this->op_num... 阅读全文
posted @ 2015-07-08 13:38 扬空 阅读(171) 评论(0) 推荐(0) 编辑
摘要: /** * 规定装饰类与被装饰类都必须实现的方法 */interface component { function operation();}/** * 被装饰的类 */class concrete_component implements component { public func... 阅读全文
posted @ 2015-06-27 17:18 扬空 阅读(150) 评论(0) 推荐(0) 编辑
摘要: /** * 策略抽象类 规定策略名称 */abstract class strategy { abstract function operating();}/** * 第一个策略 */class strategy_1 extends strategy { public function ... 阅读全文
posted @ 2015-06-26 14:52 扬空 阅读(200) 评论(0) 推荐(0) 编辑
摘要: /** * 计算器 * @param $op_num_1 操作数1 * @param $op_num_2 操作数2 * @param $op_str 操作符 * @return 操作结果 */function op($op_num_1,$op_num_2,$op_str) { $fu... 阅读全文
posted @ 2015-06-25 17:05 扬空 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2015-04-13 15:37 扬空 阅读(342) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-03-16 22:04 扬空 阅读(199) 评论(0) 推荐(0) 编辑
摘要: /** * 获取编辑器工具栏自定义参数 * @param type 类型 simple=极简版 basic=基本版 full=完整版 */function get_ckeditor_toolbar(type) { if(!arguments[0]) type = 'simple'; /... 阅读全文
posted @ 2015-03-07 23:53 扬空 阅读(2447) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2015-02-06 11:10 扬空 阅读(130) 评论(0) 推荐(0) 编辑