Class TService

Description

Implements interfaces:

TService class.

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

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TService.php 3102 2012-02-05 17:00:00Z ctrlaltca@gmail.com $
  • abstract:
  • since: 3.0

Located in /TService.php (line 24)

TComponent
   |
   --TApplicationComponent
      |
      --TService
Direct descendents
Class Description
TFeedService TFeedService class
TJsonService TJsonService class provides to end-users javascript content response in JSON format.
TPageService TPageService class.
TRpcService TRpcService class
TSoapService TSoapService class
Method Summary
boolean getEnabled ()
string getID ()
void init (TXmlElement $config)
void run ()
void setEnabled (boolean $value)
void setID (string $value)
Methods
getEnabled (line 63)
  • return: whether the service is enabled
  • access: public
boolean getEnabled ()

Implementation of:
IService::getEnabled()
getID (line 47)
  • return: id of this service
  • access: public
string getID ()

Implementation of:
IService::getID()
init (line 40)

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)

Implementation of:
IService::init()
Initializes the service.

Redefined in descendants as:
run (line 79)

Runs the service.

  • access: public
void run ()

Implementation of:
IService::run()
Runs the service.

Redefined in descendants as:
setEnabled (line 71)
  • access: public
void setEnabled (boolean $value)
  • boolean $value: whether the service is enabled

Implementation of:
IService::setEnabled()
setID (line 55)
  • access: public
void setID (string $value)
  • string $value: id of this service

Implementation of:
IService::setID()

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::__call()
TComponent::__get()
TComponent::__set()
TComponent::__sleep()
TComponent::__wakeup()

Documentation generated on Mon, 25 Jun 2012 14:39:11 +0200 by phpDocumentor 1.4.3