protected function logUnsubscribe() { $reason = $this->_params['reason']['reason']; $reasonValue = array(); if ($reason == 0) { $reasonValue = array('reason' => 'other'); $reasonValue['value'] = $this->_params['reason']['reasonOther']; } else { $oRef = new ReferencesObject(); $reasonValue = $oRef->getValueById($reason); } $strData = "releaseId" . $this->pairSepar . $this->_params['releaseId'] . $this->separator . 'category' . $this->pairSepar . $this->_params['category'] . $this->separator . $reasonValue['reason'] . $this->pairSepar . $reasonValue['value'] . $this->separator; $data = array('L_ModuleID' => $this->_moduleID, 'L_UserID' => $this->_params['memberId'], 'L_Action' => 'unsubscribe', 'L_Data' => $strData); $oLog = new LogObject(); $oLog->writeData($data); }
private function _logSending(array $data = array()) { $userId = 0; $oLog = new LogObject(); $idList = implode(',', $data['ids']); $strData = array('releaseId' => $idList); if ($this->_isXmlHttpRequest) { $userId = $this->view->user['EU_ID']; } $data = array('L_ModuleID' => $this->_moduleID, 'L_UserID' => $userId, 'L_Action' => 'sending', 'L_Data' => $strData); $oLog->writeData($data); }