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

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

WBOY
Release: 2016-06-13 10:06:11
Original
786 people have browsed it

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)实现了连贯操作~

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template