Exemplo n.º 1
0
 /**
  * Wrapper method for MongoCursor::key().
  *
  * @see http://php.net/manual/en/iterator.key.php
  * @see http://php.net/manual/en/mongocursor.key.php
  * @return mixed
  */
 public function key()
 {
     // TODO: Track position internally to avoid repeated info() calls
     if (!$this->useIdentifierKeys) {
         $info = $this->mongoCursor->info();
         return isset($info['at']) ? $info['at'] : null;
     }
     return $this->mongoCursor->key();
 }
Exemplo n.º 2
0
 /**
  * Iterator: key
  * @return string
  */
 public function key()
 {
     return $this->_cursor->key();
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function key()
 {
     return $this->mongoCursor->key();
 }
Exemplo n.º 4
0
 /**
  * Iterator::key
  *
  * @return string key
  */
 public function key()
 {
     return $this->myResultCursor->key();
 }
Exemplo n.º 5
0
 /**
  * @param MongoCursor $item
  * @return mixed
  */
 public function getItemID($item)
 {
     return $item->key();
 }
Exemplo n.º 6
0
 /**
  * Returns the current results filename
  *
  * @return string - The current results _id as a string.
  */
 public function key()
 {
     return parent::key();
 }