摘要:
public_key = file_get_contents($public_key_file)) || false == ($this->private_key = file_get_contents($private_key_file))) { throw new ... 阅读全文
摘要:
color = $color; } public function clone_self() { $obj = clone $this; $obj->color = clone $obj->color; //深复制 复制对象已持有的对象 retu... 阅读全文
摘要:
op_num_1 + $this->op_num_2,chr(10); }}/** * 执行具体运算的减法类 */class op_subtract extends op { public function get_result() { echo $this->op_num... 阅读全文
摘要:
/** * 规定装饰类与被装饰类都必须实现的方法 */interface component { function operation();}/** * 被装饰的类 */class concrete_component implements component { public func... 阅读全文
摘要:
/** * 策略抽象类 规定策略名称 */abstract class strategy { abstract function operating();}/** * 第一个策略 */class strategy_1 extends strategy { public function ... 阅读全文
摘要:
/** * 计算器 * @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... 阅读全文
摘要:
Document 阅读全文
摘要:
/** * 获取编辑器工具栏自定义参数 * @param type 类型 simple=极简版 basic=基本版 full=完整版 */function get_ckeditor_toolbar(type) { if(!arguments[0]) type = 'simple'; /... 阅读全文