/** * Get an Annotation. * * @access public * @param string $sName The name of the annotation. * @return string (string | null) The value annotation. If the annotation name is not found, Returns NULL. */ public function getAnnotation($sName) { $aAnnotations = $this->getAnnotations(); return \PH7\Framework\CArray\CArray::getValueByKey($sName, $aAnnotations); }
private function getCountryCode() { $sCountryCode = Framework\CArray\CArray::getKeyByValIgnoreCase($this->registry->country, $this->registry->lang); return strlen($sCountryCode) == 2 ? $sCountryCode : substr($this->registry->country, 0, 2); }