Пример #1
0
 /**
  * Get the aliases for an identifier
  *
  * @param mixed $identifier An ObjectIdentifier, identifier string or object implementing ObjectInterface
  * @return array   An array of aliases
  */
 public function getAliases($identifier)
 {
     return array_search((string) $identifier, $this->_registry->getAliases());
 }
Пример #2
0
 /**
  * Check if the identifier is an alias
  *
  * @param  mixed $identifier An ObjectIdentifier, identifier string or object implementing ObjectInterface
  * @return boolean Returns TRUE if the identifiers is an alias FALSE otherwise
  */
 public function isAlias($identifier)
 {
     return array_key_exists($this->__registry->getAliases(), (string) $identifier);
 }