public function getData() { $ret = parent::getData(); $ret['error_reason'] = $this->errorReason; $ret['error_code'] = $this->errorCode; return $ret; }
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; }
/** * 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; }
/** * 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; }
/** * 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')); }
protected function log($objSource, Logger_Event $eventObject) { $eventObject->putAdditionalData('logic_action_name', $this->logicActionName); parent::log($objSource, $eventObject); }
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; }
/** * 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; }
public function getData() { $ret = parent::getData(); $ret['template_name'] = $this->getTemplateName(); return $ret; }