Ejemplo n.º 1
0
 /**
  * Add a new event log entry with the specified parameters, including log level.
  * @param $conferenceId int
  * @param $schedConfId int
  * @param $logLevel char
  * @param $eventType int
  * @param $assocType int
  * @param $assocId int
  * @param $messageKey string
  * @param $messageParams array
  */
 function logEventLevel($conferenceId, $schedConfId, $logLevel, $eventType, $assocType = 0, $assocId = 0, $messageKey = null, $messageParams = array())
 {
     $entry = new ConferenceEventLogEntry();
     $entry->setLogLevel($logLevel);
     $entry->setEventType($eventType);
     $entry->setAssocType($assocType);
     $entry->setAssocId($assocId);
     if (isset($messageKey)) {
         $entry->setLogMessage($messageKey, $messageParams);
     }
     return ConferenceLog::logEventEntry($conferenceId, $schedConfId, $entry);
 }
Ejemplo n.º 2
0
 /**
  * Internal function to return an ConferenceEventLogEntry object from a row.
  * @param $row array
  * @return ConferenceEventLogEntry
  */
 function &_returnLogEntryFromRow(&$row)
 {
     $entry = new ConferenceEventLogEntry();
     $entry->setLogId($row['log_id']);
     $entry->setConferenceId($row['conference_id']);
     $entry->setSchedConfId($row['sched_conf_id']);
     $entry->setUserId($row['user_id']);
     $entry->setDateLogged($this->datetimeFromDB($row['date_logged']));
     $entry->setIPAddress($row['ip_address']);
     $entry->setLogLevel($row['log_level']);
     $entry->setEventType($row['event_type']);
     $entry->setAssocType($row['assoc_type']);
     $entry->setSchedConfTitle($row['sched_conf_title']);
     $entry->setConferenceTitle($row['conference_title']);
     $entry->setAssocId($row['assoc_id']);
     $entry->setIsTranslated($row['is_translated']);
     $entry->setEntryParams(unserialize($row['entry_params']));
     $entry->setMessage($row['message']);
     HookRegistry::call('ConferenceEventLogDAO::_returnLogEntryFromRow', array(&$entry, &$row));
     return $entry;
 }