public function __construct() { $decryptor = Mage::helper('core'); $this->accountSid = $decryptor->decrypt(Mage::getStoreConfig('twilio/config/account_sid')); $this->authToken = $decryptor->decrypt(Mage::getStoreConfig('twilio/config/auth_token')); parent::__construct($this->accountSid, $this->authToken); }
/** * Constructor * * Set up the twilio object and assign the numbers to use. */ public function __construct() { $decryptor = Mage::helper('core'); $this->AccountSid = Mage::helper('twilio')->getAccountSID(); $this->AuthToken = Mage::helper('twilio')->getAuthToken(); $this->twilioNumber = Mage::helper('twilio')->getTwilioNumber(); $this->smsNotificationNumber = Mage::helper('twilio')->getSMSNotificationNumber(); parent::__construct($this->AccountSid, $this->AuthToken); }
/** * @param string $sid * @param string $token * @param null $version * @param int $retryAttempts */ public function __construct($sid, $token, $version = null, $retryAttempts = 1) { parent::__construct($sid, $token, $version, null, $retryAttempts); }
/** * @param string $sid * @param string $token */ public function __construct($sid, $token) { parent::__construct($sid, $token); }