PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TEmailLogRoute

TEmailLogRoute class.

TEmailLogRoute sends selected log messages to email addresses. The target email addresses may be specified via setEmails Emails property. Optionally, you may set the email setSubject Subject and the setSentFrom SentFrom address.

TComponent
Extended by TApplicationComponent
Extended by TLogRoute
Extended by TEmailLogRoute
Package: System\Util
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Util/TLogRouter.php
Methods summary
public
# init( TXmlElement $config )

Initializes the route.

Initializes the route.

Parameters

$config
TXmlElement
configurations specified in TLogRouter.

Throws

TConfigurationException
if getSentFrom SentFrom is empty and 'sendmail_from' in php.ini is also empty.

Overrides

TLogRoute::init()
protected
# processLogs( array $logs )

Sends log messages to specified email addresses.

Sends log messages to specified email addresses.

Parameters

$logs
array
list of log messages
public array
# getEmails( )

Returns

array
list of destination email addresses
public array|string
# setEmails( mixed $emails )

Returns

array|string
list of destination email addresses. If the value is a string, it is assumed to be comma-separated email addresses.
public string
# getSubject( )

Returns

string
email subject. Defaults to TEmailLogRoute::DEFAULT_SUBJECT
public
# setSubject( string $value )

Parameters

$value
string
email subject.
public string
# getSentFrom( )

Returns

string
send from address of the email
public
# setSentFrom( string $value )

Parameters

$value
string
send from address of the email
Methods inherited from TLogRoute
collectLogs(), formatLogMessage(), getCategories(), getLevelName(), getLevelValue(), getLevels(), setCategories(), setLevels()
Methods inherited from TApplicationComponent
getApplication(), getRequest(), getResponse(), getService(), getSession(), getUser(), publishAsset(), publishFilePath()
Methods inherited from TComponent
__call(), __construct(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants summary
string EMAIL_PATTERN '/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/'
#

Regex pattern for email address.

Regex pattern for email address.

string DEFAULT_SUBJECT 'Prado Application Log'
#

Default email subject.

Default email subject.

Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Properties inherited from TLogRoute
$_levelNames, $_levelValues
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO