public static function fetchObjectByAttribute($identifier) { $contentObjectAttribute = eZContentObjectAttribute::fetchByIdentifier($identifier); if ($contentObjectAttribute === null) { $result = array('error' => array('error_type' => 'kernel', 'error_code' => eZError::KERNEL_NOT_FOUND)); } else { $result = array('result' => $contentObjectAttribute->attribute('object')); } return $result; }