PHP 클래스 IMP_Sentmail, horde

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Hash containing configuration parameters.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
__get ( $name )
favouriteRecipients ( integer $limit, mixed $filter = null ) : array Returns the favourite recipients.
gc ( ) Garbage collect log entries.
log ( integer $action, string $message_id, string | array $recipients, boolean $success = true ) Logs an attempt to send a message.
numberOfRecipients ( integer $hours, boolean $user = false ) : integer Returns the number of recipients within a certain time period.

보호된 메소드들

메소드 설명
_deleteOldEntries ( integer $before ) Deletes all log entries older than a certain date.
_log ( integer $action, string $message_id, string $recipient, boolean $success ) Logs an attempt to send a message per recipient.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters the driver needs.

__get() 공개 메소드

public __get ( $name )

_deleteOldEntries() 추상적인 보호된 메소드

Deletes all log entries older than a certain date.
abstract protected _deleteOldEntries ( integer $before )
$before integer Unix timestamp before that all log entries should be deleted.

_log() 추상적인 보호된 메소드

Logs an attempt to send a message per recipient.
abstract protected _log ( integer $action, string $message_id, string $recipient, boolean $success )
$action integer Why the message was sent (IMP_Sentmail constant).
$message_id string The Message-ID.
$recipient string A message recipient.
$success boolean Whether the attempt was successful.

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

Returns the favourite recipients.
abstract public favouriteRecipients ( integer $limit, mixed $filter = null ) : array
$limit integer Return this number of recipients.
$filter mixed A list of messages types that should be returned. Null returns all message types.
리턴 array A list with the $limit most favourite recipients.

gc() 공개 메소드

Garbage collect log entries.
public gc ( )

log() 공개 메소드

Logs an attempt to send a message.
public log ( integer $action, string $message_id, string | array $recipients, boolean $success = true )
$action integer Why the message was sent (IMP_Sentmail constant).
$message_id string The Message-ID.
$recipients string | array The list of message recipients.
$success boolean Whether the attempt was successful.

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

Returns the number of recipients within a certain time period.
abstract public numberOfRecipients ( integer $hours, boolean $user = false ) : integer
$hours integer Time period in hours.
$user boolean Return the number of recipients for the current user?
리턴 integer The number of recipients in the given time period.

프로퍼티 상세

$_params 보호되어 있는 프로퍼티

Hash containing configuration parameters.
protected array $_params
리턴 array