PHP Class Prado\Util\TEmailLogRoute

TEmailLogRoute sends selected log messages to email addresses. The target email addresses may be specified via {@link setEmails Emails} property. Optionally, you may set the email {@link setSubject Subject} and the {@link setSentFrom SentFrom} address.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TLogRoute
Mostrar archivo Open project: pradosoft/prado

Public Methods

Method Description
getEmails ( ) : array
getSentFrom ( ) : string
getSubject ( ) : string
init ( $config ) Initializes the route.
setEmails ( $emails ) : array | string
setSentFrom ( $value )
setSubject ( $value )

Protected Methods

Method Description
processLogs ( $logs ) Sends log messages to specified email addresses.

Method Details

getEmails() public method

public getEmails ( ) : array
return array list of destination email addresses

getSentFrom() public method

public getSentFrom ( ) : string
return string send from address of the email

getSubject() public method

public getSubject ( ) : string
return string email subject. Defaults to TEmailLogRoute::DEFAULT_SUBJECT

init() public method

Initializes the route.
public init ( $config )

processLogs() protected method

Sends log messages to specified email addresses.
protected processLogs ( $logs )

setEmails() public method

public setEmails ( $emails ) : array | string
return array | string list of destination email addresses. If the value is a string, it is assumed to be comma-separated email addresses.

setSentFrom() public method

public setSentFrom ( $value )

setSubject() public method

public setSubject ( $value )