code/libraries/joomlatools/library/object/registry/registry.php
public function find($identifier)
    {
        $identifier = (string) $identifier;

        //Resolve the real identifier in case an alias was passed
        while(array_key_exists($identifier, $this->_aliases)) {
            $identifier = $this->_aliases[$identifier];
        }

        //Find the identifier
        if($this->offsetExists($identifier))
        {
            $result = $this->offsetGet($identifier);

            if($result instanceof KObjectInterface) {
                $result = $result->getIdentifier();
            }
        }
        else  $result = null;

        return $result;
    }
public function find($identifier)
    {
        $identifier = (string) $identifier;

        //Resolve the real identifier in case an alias was passed
        while(array_key_exists($identifier, $this->_aliases)) {
            $identifier = $this->_aliases[$identifier];
        }

        //Find the identifier
        if($this->offsetExists($identifier))
        {
            $result = $this->offsetGet($identifier);

            if($result instanceof KObjectInterface) {
                $result = $result->getIdentifier();
            }
        }
        else  $result = null;

        return $result;
    }
public function find ( $ identifier ) { $ identifier = ( string ) $ identifier ; //Resolve the real identifier in case an alias was passed while ( array_key_exists ( $ identifier , $ this -> _aliases ) ) { $ identifier = $ this -> _aliases [ $ identifier ] ; } //Find the identifier if ( $ this -> offsetExists ( $ identifier ) ) { $ result = $ this -> offsetGet ( $ identifier ) ; if ( $ result instanceof KObjectInterface ) { $ result = $ result -> getIdentifier ( ) ; } } else $ result = null ; return $ result ; }
Try to find an object based on an identifier string

@param   mixed  $identifier
@return  KObjectIdentifier  An ObjectIdentifier or NULL if the identifier does not exist.
Try to find an object based on an identifier string