Ejemplo n.º 1
0
 /**
  * Internal function to return a MonographEventLogEntry object from a row.
  * @param $row array
  * @return MonographEventLogEntry
  */
 function &_returnLogEntryFromRow(&$row)
 {
     $entry = new MonographEventLogEntry();
     $entry->setLogId($row['log_id']);
     $entry->setMonographId($row['monograph_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->setAssocId($row['assoc_id']);
     $entry->setMessage($row['message']);
     HookRegistry::call('MonographEventLogDAO::_returnLogEntryFromRow', array(&$entry, &$row));
     return $entry;
 }