Esempio n. 1
0
 public function __construct($username, $password, $sender = NULL, $settings = NULL, $_default)
 {
     parent::__construct($username, $password);
     $this->sender = $sender;
     $this->settings = $settings;
     $this->_default = $_default;
 }
Esempio n. 2
0
 public function __construct($username, $password)
 {
     parent::__construct($username, $password);
     $this->username = $username;
     $client = $this->getSmsapiClient();
     $smsApi = new SMSApi\Api\UserFactory(null, $client);
     $action = $smsApi->actionGetPoints();
     $action->setDetails(1);
     try {
         $this->points = $action->execute();
     } catch (SMSApi\Exception\SmsapiException $e) {
         $this->points = null;
         $this->error = $e->getMessage();
     }
 }