示例#1
0
 public function getData()
 {
     $ret = parent::getData();
     $ret['error_reason'] = $this->errorReason;
     $ret['error_code'] = $this->errorCode;
     return $ret;
 }
示例#2
0
 public function getData()
 {
     $ret = parent::getData();
     $exception = $this->getException();
     if ($exception) {
         $ret['exception_message'] = $exception->getMessage();
         $ret['exception_file'] = $exception->getFile();
         $ret['exception_line'] = $exception->getLine();
         $ret['exception_class'] = get_class($exception);
     }
     return $ret;
 }
示例#3
0
 /**
  * Zwraca dane przystowane do zapisu loga do bazy danych
  * @return array - tablica z danymi zdarzenia
  */
 public function getData()
 {
     $ret = parent::getData();
     $ret['search_params'] = $this->getSearchParams($this->searchParams);
     $ret['search_results'] = $this->getSearchResults($this->searchResults);
     return $ret;
 }
示例#4
0
文件: Logic.php 项目: knatorski/SMS
 /**
  * Zwraca dane przystowane do zapisu loga do bazy danych
  * @return array - tablica z danymi zdarzenia
  */
 public function getData()
 {
     $ret = parent::getData();
     $ret['event_items'] = $this->getJson($this->getItems());
     $ret['backend_apps_items'] = $this->getJson($this->getBeckendAppsItems());
     if (!is_null($this->customerId)) {
         $ret['customer_id'] = $this->customerId;
     }
     $ret['customer_ids'] = '{' . implode(',', $this->customerIds) . '}';
     return $ret;
 }
示例#5
0
 /**
  * Ustawia wartosci standardowych kolumn wszystkich tabel logów
  */
 protected function setDefaultData(Logger_Event $eventObject)
 {
     $identity = Zend_Auth::getInstance()->getIdentity();
     if (!empty($identity)) {
         $eventObject->putAdditionalData('user_id', $identity->id);
         $eventObject->putAdditionalData('branch_id', $identity->jednostka['id']);
         $eventObject->putAdditionalData('user_login', $identity->login);
         $eventObject->putAdditionalData('web_name', $identity->jednostka['web_name']);
     } else {
         $eventObject->putAdditionalData('user_id', -1);
         $eventObject->putAdditionalData('branch_id', -1);
         $eventObject->putAdditionalData('user_login', 'identity not set');
         $eventObject->putAdditionalData('web_name', 'identity not set');
     }
     //$eventObject->putAdditionalData('host', 'dev-hawaje');
     $eventObject->putAdditionalData('sessionID', Zend_Session::getId());
     $eventObject->putAdditionalData('ip', $_SERVER['REMOTE_ADDR']);
     //$identity->last_login_ip;
     $eventObject->putAdditionalData('request_hash', $this->requestUniqueId);
     $eventObject->putAdditionalData('logic_action_hash', $this->businessActionUniqueId);
     $eventObject->putAdditionalData('timestamp', date('Y-m-d H:i:s'));
 }
示例#6
0
 protected function log($objSource, Logger_Event $eventObject)
 {
     $eventObject->putAdditionalData('logic_action_name', $this->logicActionName);
     parent::log($objSource, $eventObject);
 }
示例#7
0
 public function getData()
 {
     $ret = parent::getData();
     $ret['pesel'] = $this->pesel;
     $ret['document_number'] = $this->documentNumber;
     $ret['id_document_type'] = $this->IdDocumentType;
     $ret['error_reason'] = $this->errorReason;
     $ret['error_code'] = $this->errorCode;
     $ret['id_backend_application'] = $this->idBackendApp;
     return $ret;
 }
示例#8
0
文件: Migdz.php 项目: knatorski/SMS
 /**
  * Zwraca dane przystowane do zapisu loga do bazy danych
  * @return array - tablica z danymi zdarzenia
  */
 public function getData()
 {
     $ret = parent::getData();
     $ret['client_name'] = $this->clientName;
     $ret['id_document_type'] = $this->idType;
     $ret['document_number'] = $this->documentNo;
     $ret['test_result'] = $this->testResult;
     $ret['pesel'] = $this->pesel;
     $ret['id_backend_application'] = $this->idBackendApp;
     return $ret;
 }
示例#9
0
 public function getData()
 {
     $ret = parent::getData();
     $ret['template_name'] = $this->getTemplateName();
     return $ret;
 }