tailable() public method

Sets whether this cursor will be left open after fetching the last results
public tailable ( boolean $tail = true ) : MongoCursor
$tail boolean If the cursor should be tailable.
return MongoCursor Returns this cursor
Exemplo n.º 1
0
 /**
  * Wrapper method for MongoCursor::tailable().
  *
  * @see http://php.net/manual/en/mongocursor.tailable.php
  * @param boolean $tail
  * @return self
  */
 public function tailable($tail = true)
 {
     $tail = (bool) $tail;
     $this->tailable = $tail;
     $this->mongoCursor->tailable($tail);
     return $this;
 }
Exemplo n.º 2
0
 public function tailable($tail = true)
 {
     parent::tailable($tail);
     return $this;
 }
Exemplo n.º 3
0
 /**
  * 设置光标在取完结果集后是否还让其存在
  * @param Boolean $tail
  * @return muMongoCursor
  */
 public function tailable($tail = true)
 {
     $this->oMongoCursor->tailable($tail);
     return $this;
 }