self::POP3_VALUE, 'label' => Mage::helper('aw_hdu3')->__(self::POP3_LABEL)), array('value' => self::IMAP_VALUE, 'label' => Mage::helper('aw_hdu3')->__(self::IMAP_LABEL)), ); } /** * @param int $protocol * * @return null | string */ public function getInstanceByProtocol($protocol) { switch ($protocol) { case self::POP3_VALUE : $instance = self::POP3_INSTANCE; break; case self::IMAP_VALUE : $instance = self::IMAP_INSTANCE; break; default : $instance = null; } return $instance; } }