Пример #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();
 }
Пример #2
0
 /**
  * Iterator: key
  * @return string
  */
 public function key()
 {
     return $this->_cursor->key();
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function key()
 {
     return $this->mongoCursor->key();
 }
Пример #4
0
 /**
  * Iterator::key
  *
  * @return string key
  */
 public function key()
 {
     return $this->myResultCursor->key();
 }
Пример #5
0
 /**
  * @param MongoCursor $item
  * @return mixed
  */
 public function getItemID($item)
 {
     return $item->key();
 }
Пример #6
0
 /**
  * Returns the current results filename
  *
  * @return string - The current results _id as a string.
  */
 public function key()
 {
     return parent::key();
 }