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.
Method Summary |
boolean
|
|
string
|
|
void
|
Initializes the service and attaches run to the RunService event of application.
|
void
|
Runs the service.
|
void
|
|
void
|
|
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
Output |
string
| id of this service |
Exception |
|
init
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 | $config | module configuration |
Output |
Exception |
|
run
Runs the service.
|
setEnabled
public void setEnabled |
(boolean $value ) |
Input |
boolean | $value | whether the service is enabled |
Output |
Exception |
|
setID
public void setID |
(string $value ) |
Input |
string | $value | id of this service |
Output |
Exception |
|
|