Home  >  Article  >  Backend Development  >  ThinkPHP开发指南-模型之连贯操作如何实现的

ThinkPHP开发指南-模型之连贯操作如何实现的

WBOY
WBOYOriginal
2016-06-13 13:40:42687browse

ThinkPHP开发指南-模型之连贯操作怎么实现的
tp 模型中我也没有找到limit方法 order方法 where方法 field方法 

请问是怎么实现如下的呢?
 
实现的代码在哪个文件中?
  
望高手指点

$list=$user->limit('2')->order(array('id'=>'desc','username'))->where('id>1')->field('id,username')->select();
 

------解决方案--------------------
Model.class.php中public function __call($method,$args)实现了连贯操作~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn