self::TYPE_NONE_VALUE, 'label' => Mage::helper('aw_hdu3')->__(self::TYPE_NONE_LABEL)), array('value' => self::TYPE_SSL_VALUE, 'label' => Mage::helper('aw_hdu3')->__(self::TYPE_SSL_LABEL)), array('value' => self::TYPE_TLS_VALUE, 'label' => Mage::helper('aw_hdu3')->__(self::TYPE_TLS_LABEL)), ); } /** * @param int $value * * @return string */ public function getTypeCodeByValue($value) { switch ($value) { case self::TYPE_TLS_VALUE : $code = self::TYPE_TLS_CODE; break; case self::TYPE_SSL_VALUE : $code = self::TYPE_SSL_CODE; break; default : $code = false; } return $code; } }