/** * 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(); }
/** * Iterator: key * @return string */ public function key() { return $this->_cursor->key(); }
/** * {@inheritdoc} */ public function key() { return $this->mongoCursor->key(); }
/** * Iterator::key * * @return string key */ public function key() { return $this->myResultCursor->key(); }
/** * @param MongoCursor $item * @return mixed */ public function getItemID($item) { return $item->key(); }
/** * Returns the current results filename * * @return string - The current results _id as a string. */ public function key() { return parent::key(); }