Exemplo n.º 1
0
 /**
  *
  * @see Logic_Service_Multiinfo_Response_Interface
  */
 public function handle($responseRaw)
 {
     diee($responseRaw);
     $responseRaw = $this->_explode($responseRaw);
     if (isset($responseRaw['Success']) && $this->_check($responseRaw['Success'], 'id') != null) {
         $response = $responseRaw['Success'];
         $this->_response->status = true;
         $this->_response->smsId = $this->_check($response, 'id');
         $this->_response->contentType = '';
         $this->_response->content = $this->_check($response, 'tresc');
         $this->_response->protocolID = '';
         $this->_response->codeSchema = '';
         $this->_response->serviceID = '';
         $this->_response->konnektorID = '';
         $this->_response->responseSmsId = '';
         $this->_response->priority = '';
         $this->_response->timeSent = $this->_check($response, 'godzina_wyslania');
         $this->_response->expiryTime = '';
         $this->_response->getReport = $this->_check($response, 'przyczyna');
         $this->_response->sender = '';
         $this->_response->phoneNumber = $this->_check($response, 'numer');
         $this->_response->messageStatus = $this->_check($response, 'stan');
         $this->_response->lastStatusChange = '';
     } else {
         $this->_response->status = false;
         $this->_response->errorCode = "500";
         $this->_response->errorMessage = "Prawdopodobnie pusta odpowiedź od operatora.";
     }
     return $this->_response;
 }
Exemplo n.º 2
0
 public function deftestAction()
 {
     $start = microtime();
     $isResident = false;
     $findData = array('firstname' => 'GEORG', 'surname' => 'BADURA', 'is_resident' => $isResident ? 't' : 'f', 'identity_document_type' => '9', 'identity_document_number' => 'D5009999999', 'pesel' => '87080808294');
     try {
         $customer = Logic_Customer::findOrCreate($findData);
     } catch (Exception $e) {
         diee($e->getMessage());
     }
     echo microtime() - $start;
     diee($customer);
 }
Exemplo n.º 3
0
 public static function _exceptionCallback()
 {
     diee(self::$_client);
 }