Packages:
default
System
System.Caching
System.Collections
System.Data
System.Data.ActiveRecord
System.Data.ActiveRecord.Relations
System.Data.ActiveRecord.Scaffold
System.Data.ActiveReecord.Scaffold.InputBuilder
System.Data.Commom.Sqlite
System.Data.Common
System.Data.Common.Mssql
System.Data.Common.Mysql
System.Data.Common.Oracle
System.Data.Common.Pgsql
System.Data.Common.Sqlite
System.Data.DataGateway
System.Data.SqlMap
System.Data.SqlMap.Configuration
System.Data.SqlMap.Statements
System.Exceptions
System.I18N
System.IO
System.Security
System.Util
System.Web
System.Web.Services
System.Web.UI
System.Web.UI.ActiveControls
System.Web.UI.WebControls
System.Web.UI.WebControls.assets
System.Xml


Classes:
Keyword

Class TService

Direct Known Sub-classes:

TService class.

TService implements the basic methods required by IService and may be used as the basic class for application services.

Since: 3.0
Author: Qiang Xue <qiang.xue@gmail.com>

Method Summary
boolean
string
getID ()
void
init ( TXmlElement $config)
Initializes the service and attaches run to the RunService event of application.
void
run ()
Runs the service.
void
setEnabled ( boolean $value)
void
setID ( string $value)
Methods Inherited From TApplicationComponent
TApplicationComponent::getApplication(), TApplicationComponent::getRequest(), TApplicationComponent::getResponse(), TApplicationComponent::getService(), TApplicationComponent::getSession(), TApplicationComponent::getUser(), TApplicationComponent::publishAsset(), TApplicationComponent::publishFilePath()
Methods Inherited From TComponent
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()

Method Details

getEnabled

public boolean getEnabled ()

Output
boolean whether the service is enabled
Exception

getID

public string getID ()

Output
string id of this service
Exception

init

public void init (TXmlElement $config )

Initializes the service and attaches run to the RunService event of application.

This method is required by IService and is invoked by application.

Input
TXmlElement$configmodule configuration
Output
Exception

run

public void run ()

Runs the service.

Output
Exception

setEnabled

public void setEnabled (boolean $value )

Input
boolean$valuewhether the service is enabled
Output
Exception

setID

public void setID (string $value )

Input
string$valueid of this service
Output
Exception