snapshot() public method

Use snapshot mode for the query
public snapshot ( ) : MongoCursor
return MongoCursor Returns this cursor
示例#1
0
 public function snapshot()
 {
     parent::snapshot();
     return $this;
 }
示例#2
0
文件: Cursor.php 项目: ne0h12/mongodb
 /**
  * Wrapper method for MongoCursor::snapshot().
  *
  * @see http://php.net/manual/en/mongocursor.snapshot.php
  * @return self
  */
 public function snapshot()
 {
     $this->snapshot = true;
     $this->mongoCursor->snapshot();
     return $this;
 }
示例#3
0
 /**
  * 设置使用快照查询(缓存该查询)
  * @return muMongoCursor
  */
 public function snapshot()
 {
     $this->oMongoCursor->snapshot();
     return $this;
 }