PHP 클래스 IMP_Maillog, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde

공개 프로퍼티들

프로퍼티 타입 설명
$storage IMP_Maillog_Storage_Base Storage driver.

공개 메소드들

메소드 설명
__construct ( IMP_Maillog_Storage_Base $storage ) Constructor.
deleteLog ( IMP_Maillog_Messages | array $msgs ) Delete log entries.
getChanges ( integer $ts ) : array Retrieve changes to the maillog since the provided timestamp.
getLog ( IMP_Maillog_Message $msg, array $types = [] ) : array Retrieve history for a message.
log ( mixed $msgs, IMP_Maillog_Log_Base $log ) Create a log entry.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( IMP_Maillog_Storage_Base $storage )
$storage IMP_Maillog_Storage_Base Storage driver.

deleteLog() 공개 메소드

Delete log entries.
public deleteLog ( IMP_Maillog_Messages | array $msgs )
$msgs IMP_Maillog_Messages | array A list of message objects to delete.

getChanges() 공개 메소드

Retrieve changes to the maillog since the provided timestamp.
public getChanges ( integer $ts ) : array
$ts integer Timestamp.
리턴 array An array of messages (IMP_Maillog_Message objects) changed since the provided timestamp.

getLog() 공개 메소드

Retrieve history for a message.
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.
리턴 array List of IMP_Maillog_Log_Base objects.

log() 공개 메소드

Create a log entry.
public log ( mixed $msgs, IMP_Maillog_Log_Base $log )
$msgs mixed An IMP_Maillog_Message object (or an array of objects).
$log IMP_Maillog_Log_Base The log object.

프로퍼티 상세

$storage 공개적으로 프로퍼티

Storage driver.
public IMP_Maillog_Storage_Base $storage
리턴 IMP_Maillog_Storage_Base