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
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

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

Méthodes protégées

Méthode Description
processLogs ( $logs ) Sends log messages to specified email addresses.

Method Details

getEmails() public méthode

public getEmails ( ) : array
Résultat array list of destination email addresses

getSentFrom() public méthode

public getSentFrom ( ) : string
Résultat string send from address of the email

getSubject() public méthode

public getSubject ( ) : string
Résultat string email subject. Defaults to TEmailLogRoute::DEFAULT_SUBJECT

init() public méthode

Initializes the route.
public init ( $config )

processLogs() protected méthode

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

setEmails() public méthode

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

setSentFrom() public méthode

public setSentFrom ( $value )

setSubject() public méthode

public setSubject ( $value )