## 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: $Id: TService.php 1398 2006-09-08 19:31:03Z xue $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /TService.php (line 24)

    TComponent
       |
       --TApplicationComponent
          |
          --TService

Direct descendents

Class | Description
--- | ---
TJsonService | TJsonService class provides to end-users javascript content response in JSON format.
TPageService | TPageService class.
TSoapService | TSoapService 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:

- TJsonService::init() : Initializes this module.
- TPageService::init() : Initializes the service.
- TSoapService::init() : Initializes this module.

run (line 59)

Runs the service.

- access: public

void run ()

Redefined in descendants as:

- TJsonService::run() : Runs the service.
- TPageService::run() : Runs the service.
- TSoapService::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::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()

Documentation generated on Sun, 14 Jan 2007 21:44:16 -0500 by phpDocumentor 1.3.0RC4