Returns the position of the object in the collection
@param  string|GObject $objectOrKey
@return integer|FALSE
324318
public function getOrder($objectOrKey) {
    $key = $objectOrKey instanceof GObject ? $objectOrKey->getKey() : $objectOrKey;
    return array_search($key, $this->order);
  }
1219114
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();
    }
1019067
public function getDefinitionRoleLocator( $roleRefsKey, $locator )
	{
		$locators = $this->getDefinitionRoleLocators( $roleRefsKey );
		return $locators && isset( $locators[ $locator ] ) ? $locators[ $locator ] : false;
	}
864543
public function getReflectionMember($objectOrClassName)
    {
        $className = \is_string($objectOrClassName) ? $objectOrClassName : \get_class($objectOrClassName);
        if (!isset($this->reflMember[$className])) {
            $this->reflMember[$className] = $this->newReflectionMember($objectOrClassName);
        }

        return $this->reflMember[$className];
    }
787137
protected function get_key_from_position() {
        $keylist = array_keys($this->contextlists);
        if (isset($keylist[$this->iteratorposition])) {
            return $keylist[$this->iteratorposition];
        }

        return null;
    }
603854
public function getFirst($primaryKey)
    {
        if (!isset($this->values[$primaryKey])) {
            throw new OutOfBoundsException(sprintf(
                'The key "%s" does not exist.',
                $primaryKey
            ));
        }

        return reset($this->values[$primaryKey]);
    }
1268405
public function getMinified(string $key): ?string
    {
        if (array_key_exists($key, $this->map)) {
            return $key;
        }

        $foundKey = array_search($key, $this->map);
        if ($foundKey === false) {
            throw new JoryException('Key '.$key.' is no valid Jory key.');
        }

        return $foundKey;
    }
12555
public static function getCoordinateMap($key=NULL)
    {
        if ($key) {
            return isset(self::$_keyCoordinateMap[$key]) ? self::$_keyCoordinateMap[$key] : NULL;
        } else {
            return self::$_keyCoordinateMap;
        }
    }
1135116
public function indexOf( common_Object $object)
    {
        $returnValue = (int) 0;

        
    	$returnValue = -1;
        foreach($this->sequence as $index => $_object){
			if($object === $_object){
				return $index;
			}
		}
        

        return (int) $returnValue;
    }
1006719
private function getNumberOfDocuments($documentKey)
    {
        $select = $this->solariumClient->createQuery(SolariumClient::QUERY_SELECT);
        $select->setQuery(sprintf('id:%s_*', $documentKey));

        $result = $this->solariumClient->select($select);

        return $result->getNumFound();
    }
1361553
public static function getOid($key)
    {
        if (isset(self::$oidsTable[$key])) {
            return self::$oidsTable[$key];
        }

        return false;
    }
985099
public function getPriority(AnObjectHandlable $object)
    {
        $result = false;

        if ($handle = $object->getHandle()) {
            if ($this->_priority_list->offsetExists($handle)) {
                $result = $this->_priority_list->offsetGet($handle);
            }
        }

        return $result;
    }
1295430
private function getPosition()
    {
        if (false === ($position = @ftell($this->getHandle()))) {
            $error = error_get_last();

            throw new RuntimeException($error['message']);
        }

        return $position;
    }
1081754
public function getOffsetFor($objectNumber)
    {
        foreach ($this->getReaders() as $reader) {
            $offset = $reader->getOffsetFor($objectNumber);
            if ($offset !== false) {
                return $offset;
            }
        }

        return false;
    }
155827
public function get($primaryKey, $secondaryKey)
    {
        if (!isset($this->values[$primaryKey][$secondaryKey])) {
            throw new OutOfBoundsException(sprintf(
                'The key ("%s","%s") does not exist.',
                $primaryKey,
                $secondaryKey
            ));
        }

        return $this->values[$primaryKey][$secondaryKey];
    }
1321935
public function sortKey() {
    if ($this instanceof RootNode) {
      return spl_object_hash($this);
    }
    if (!$this->parent) {
      return '~/' . spl_object_hash($this);
    }
    $path = $this->parent->sortKey() . '/';
    $position = 0;
    $previous = $this->previous;
    while ($previous) {
      $position++;
      $previous = $previous->previous;
    }
    $path .= $position;
    return $path;
  }
1358020
public function selectObjectByKey($key)
       {
            if (isset($this->map[$key])) {
                parent::rewind();
                while(parent::valid()) {
                    if (parent::key() === $key) {
                        return true;
                    }
                    parent::next();
                }
            }
            return false;
       }