IMP_Maillog_Storage_Base::getLog PHP Method

getLog() abstract public method

Retrieve history for a message.
abstract public getLog ( IMP_Maillog_Message $msg, array $types = [] ) : array
$msg IMP_Maillog_Message A message object.
$types array Return only these log types (IMP_Maillog_Log_Base class names). If empty, returns all types.
return array Array of IMP_Maillog_Log_Base objects.
    public abstract function getLog(IMP_Maillog_Message $msg, array $types = array());

Usage Example

Example #1
0
 /**
  * Retrieve history for a message.
  *
  * @param IMP_Maillog_Message $msg  A message object.
  * @param array $types              Return only these log types
  *                                  (IMP_Maillog_Log_Base class names). If
  *                                  empty, returns all types.
  *
  * @return array  List of IMP_Maillog_Log_Base objects.
  */
 public function getLog(IMP_Maillog_Message $msg, array $types = array())
 {
     return $this->storage->getLog($msg, $types);
 }
All Usage Examples Of IMP_Maillog_Storage_Base::getLog