PHP设计模式(6)- PHP链式操作
摘要:
PHP链式操作:形如:$db->where()->order()->limit()的语法模式,在一行代码中完成多个方法的调用。链式操作的关键在于被调用的对象方法返回对象本身。sql .= " where {$where}"; return $this; } public f... 阅读全文
posted @ 2015-08-01 15:42 redasurc 阅读(270) 评论(0) 推荐(0)
posted @ 2015-08-01 15:42 redasurc 阅读(270) 评论(0) 推荐(0)