*/ class Mage_Api2_Model_Acl_Global_Rule_Permission { /**#@+ * Source keys */ const TYPE_ALLOW = 1; const TYPE_DENY = 0; /**#@-*/ /** * Get options parameters * * @return array */ static public function toOptionArray() { return array( array( 'value' => self::TYPE_DENY, 'label' => Mage::helper('api2')->__('Deny') ), array( 'value' => self::TYPE_ALLOW, 'label' => Mage::helper('api2')->__('Allow') ), ); } /** * Get options in "key-value" format * * @return array */ static public function toArray() { return array( self::TYPE_DENY => Mage::helper('api2')->__('Deny'), self::TYPE_ALLOW => Mage::helper('api2')->__('Allow'), ); } }