php封装的mongodb操作类代码
| /*     --------------------------------------------------------------------------------    ORDER BY PARAMETERS  --------------------------------------------------------------------------------      Sort the documents based on the parameters passed. To set values to descending order, you must pass values of either -1,'desc',or 'DESC',else they will be   set to 1 (ASC).    @usage = $this->mongo_db->where_between('foo',30);  */ /*     --------------------------------------------------------------------------------    LIMIT DOCUMENTS  --------------------------------------------------------------------------------      Limit the result set to $x number of documents     @usage = $this->mongo_db->limit($x);  */ /*     --------------------------------------------------------------------------------    OFFSET DOCUMENTS    --------------------------------------------------------------------------------      Offset the result set to skip $x number of documents      @usage = $this->mongo_db->offset($x); */ /*     --------------------------------------------------------------------------------    GET_WHERE   --------------------------------------------------------------------------------      Get the documents based upon the passed parameters     @usage = $this->mongo_db->get_where('foo',array('bar' => 'something'));  */ public function listinfo($collection = "",$orderby=array(),$page=1,$pagesize=12) { /*     --------------------------------------------------------------------------------    GET  --------------------------------------------------------------------------------      Get the documents based upon the passed parameters     @usage = $this->mongo_db->get('foo',array('bar' => 'something')); */ (编辑:南平站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! | 


