PHP 클래스 Horde_Spam_Email, horde

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_email string Target e-mail address.
$_format string E-mail format.
$_from_addr string Sending e-mail address.
$_mail Horde_Mail_Transport Mail transport.
$_opts array Additional options.
$_user string The reporting user.

공개 메소드들

메소드 설명
__construct ( Horde_Mail_Transport $mail, string $email, string $from, string $user, string $format, array $opts = [] ) Constructor.
report ( array $msgs, $action )

보호된 메소드들

메소드 설명
_makeStream ( string | resource $val ) : Horde_Stream Converts a string or resource into a Horde_Stream object.
_redirectMessage ( Horde_Stream $message ) Sends a redirect (a/k/a resent) message.
_reportDigest ( array $messages, integer $action ) : integer Builds and sends a digest message.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Mail_Transport $mail, string $email, string $from, string $user, string $format, array $opts = [] )
$mail Horde_Mail_Transport The mail transport to use.
$email string E-mail address to send reports to.
$from string E-mail address to send reports from.
$user string A user name for information purposes.
$format string E-mail format. Either 'redirect' or 'digest'.
$opts array Additional options: - digest_limit_msgs: (integer) Maximum number of messages allowed in a digest. - digest_limit_size: (integer) Maximum size of a digest.

_makeStream() 보호된 메소드

Converts a string or resource into a Horde_Stream object.
protected _makeStream ( string | resource $val ) : Horde_Stream
$val string | resource Some content.
리턴 Horde_Stream A Horde_Stream object with the content.

_redirectMessage() 보호된 메소드

Sends a redirect (a/k/a resent) message.
protected _redirectMessage ( Horde_Stream $message )
$message Horde_Stream Message content.

_reportDigest() 보호된 메소드

Builds and sends a digest message.
protected _reportDigest ( array $messages, integer $action ) : integer
$messages array List of message contents (string|resource).
$action integer Either Horde_Spam::SPAM or Horde_Spam::INNOCENT.
리턴 integer The number of reported messages.

report() 공개 메소드

public report ( array $msgs, $action )
$msgs array

프로퍼티 상세

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

Target e-mail address.
protected string $_email
리턴 string

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

E-mail format.
protected string $_format
리턴 string

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

Sending e-mail address.
protected string $_from_addr
리턴 string

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

Mail transport.
protected Horde_Mail_Transport $_mail
리턴 Horde_Mail_Transport

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

Additional options.
protected array $_opts
리턴 array

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

The reporting user.
protected string $_user
리턴 string