PHP 클래스 IMP_Maillog_Storage_Base, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
deleteLogs ( 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.
isAvailable ( IMP_Maillog_Message $msg, IMP_Maillog_Log_Base $log ) : boolean Is this storage driver available for the given message/log type?
saveLog ( IMP_Maillog_Message $msg, IMP_Maillog_Log_Base $log ) : boolean Store a log entry.

메소드 상세

deleteLogs() 추상적인 공개 메소드

Delete log entries.
abstract public deleteLogs ( IMP_Maillog_Messages | array $msgs )
$msgs IMP_Maillog_Messages | array Message objects (IMP_Maillog_Message objects).

getChanges() 추상적인 공개 메소드

Retrieve changes to the maillog since the provided timestamp.
abstract 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.
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.
리턴 array Array of IMP_Maillog_Log_Base objects.

isAvailable() 추상적인 공개 메소드

Is this storage driver available for the given message/log type?
abstract public isAvailable ( IMP_Maillog_Message $msg, IMP_Maillog_Log_Base $log ) : boolean
$msg IMP_Maillog_Message A message object.
$log IMP_Maillog_Log_Base Log entry.
리턴 boolean True if the storage driver can handle data for the given input.

saveLog() 추상적인 공개 메소드

Store a log entry.
abstract public saveLog ( IMP_Maillog_Message $msg, IMP_Maillog_Log_Base $log ) : boolean
$msg IMP_Maillog_Message Message object.
$log IMP_Maillog_Log_Base Log entry.
리턴 boolean True if log entry was saved.