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

        //Don't register the alias if it's the same as the identifier
        if($alias != $identifier) {
            $this->_aliases[$alias] = (string) $identifier;
        }

        return $this;
    }
public function alias($identifier, $alias)
    {
        $alias      = trim((string) $alias);
        $identifier = (string) $identifier;

        //Don't register the alias if it's the same as the identifier
        if($alias != $identifier) {
            $this->_aliases[$alias] = (string) $identifier;
        }

        return $this;
    }
public function alias ( $ identifier , $ alias ) { $ alias = trim ( ( string ) $ alias ) ; $ identifier = ( string ) $ identifier ; //Don't register the alias if it's the same as the identifier if ( $ alias != $ identifier ) { $ this -> _aliases [ $ alias ] = ( string ) $ identifier ; } return $ this ; }
Register an alias for an identifier

@param  KObjectIdentifier|string $identifier An ObjectIdentifier, identifier string
@param mixed  $alias  The alias
@return KObjectRegistry
Register an alias for an identifier