Exemplo n.º 1
0
 /**
  * Internal function to return a MonographEmailLogEntry object from a row.
  * @param $row array
  * @return MonographEmailLogEntry
  */
 function &_returnLogEntryFromRow(&$row)
 {
     $entry = new MonographEmailLogEntry();
     $entry->setLogId($row['log_id']);
     $entry->setMonographId($row['monograph_id']);
     $entry->setSenderId($row['sender_id']);
     $entry->setDateSent($this->datetimeFromDB($row['date_sent']));
     $entry->setIPAddress($row['ip_address']);
     $entry->setEventType($row['event_type']);
     $entry->setAssocType($row['assoc_type']);
     $entry->setAssocId($row['assoc_id']);
     $entry->setFrom($row['from_address']);
     $entry->setRecipients($row['recipients']);
     $entry->setCcs($row['cc_recipients']);
     $entry->setBccs($row['bcc_recipients']);
     $entry->setSubject($row['subject']);
     $entry->setBody($row['body']);
     HookRegistry::call('MonographEmailLogDAO::_returnLogEntryFromRow', array(&$entry, &$row));
     return $entry;
 }