## Class TService

Description

Implements interfaces:

- IService

TService class.

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

- abstract:
- since: 3.0
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /TService.php (line 24)

    TComponent
       |
       --TApplicationComponent
          |
          --TService

Direct descendents

Class | Description
--- | ---
TPageService | TPageService class.

Method Summary
string getID ()
void init (TXmlElement $config)
void run ()
void setID (string $value)
Methods
getID (line 43)

- return: id of this service
- access: public

string getID ()
init (line 36)

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

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

- access: public

void init (TXmlElement $config)

- TXmlElement $config: module configuration

Redefined in descendants as:

- TPageService::init() : Initializes the service.

run (line 59)

Runs the service.

- access: public

void run ()

Redefined in descendants as:

- TPageService::run() : Runs the service.

setID (line 51)

- access: public

void setID (string $value)

- string $value: id of this service

#### Inherited Methods

Inherited From TApplicationComponent

> TApplicationComponent::getApplication()
> TApplicationComponent::getRequest()
> TApplicationComponent::getResponse()
> TApplicationComponent::getService()
> TApplicationComponent::getSession()
> TApplicationComponent::getUser()
> TApplicationComponent::publishAsset()
> TApplicationComponent::publishFilePath()

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Mon, 01 May 2006 23:04:38 -0400 by phpDocumentor 1.3.0RC4