public function __construct() { parent::__construct(); foreach ($this->getCode('condition_name') as $k => $v) { $this->_conditionNames[] = $k; } }
public function __construct($registry) { parent::__construct($registry); if (Mage::getStoreConfig('carriers/' . $this->_code . '/sandbox')) { $this->_sandboxMode = true; } else { $this->_sandboxMode = false; } if ($this->_sandboxMode == false) { $this->PRODUCTION_KEY = Mage::getStoreConfig('carriers/' . $this->_code . '/prokey'); $this->PRODUCTION_PASS = Mage::getStoreConfig('carriers/' . $this->_code . '/propass'); $this->BILLING_ACCOUNT = Mage::getStoreConfig('carriers/' . $this->_code . '/billingaccount'); $this->REGISTERED_ACCOUNT = Mage::getStoreConfig('carriers/' . $this->_code . '/registeredaccount'); } else { $this->PRODUCTION_KEY = "57f5b17d6f4c43229f86b5cb0af78d0b"; $this->PRODUCTION_PASS = "******"; $this->BILLING_ACCOUNT = "9999999999"; $this->REGISTERED_ACCOUNT = "9999999999"; } }
/** * Class constructor. */ public function __construct() { parent::__construct(); }
/** * @param array $data */ public function __construct(array $data = array()) { $this->_helper = Mage::helper('ch_ems'); $this->_code = self::CARRIER_CODE; parent::__construct($data); }