Example #1
0
 /**
  * Sprawdzenie, czy numer jest na liscie numerow zablokowanych
  */
 public function isValid($recipientId, $content = null)
 {
     $smsRecipient = new SmsRecipient();
     $phoneNumber = $smsRecipient->getRecipientNumber($recipientId);
     $model = new SmsBlacklist();
     if ($model->getRecordByNumber($phoneNumber, $clientId)) {
         $this->_error("Proba wyslania sms na numer obecny na blacklist", $phoneNumber);
         return false;
     }
     return true;
 }
Example #2
0
 /**
  * Sprawdzenie, czy numer jest na liscie numerow zablokowanych
  *
  * @throws Logic_WebService_Sms_Exception
  * @return void
  */
 public function checkNumberOnBlackList($clientId, $number = null)
 {
     if (is_null($number)) {
         $number = $this->_number;
     }
     $model = new SmsBlacklist();
     if ($model->getRecordByNumber($number, $clientId)) {
         return true;
     }
     return false;
 }