PHP Class Prado\TService

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 ([email protected])
Inheritance: extends TApplicationComponent, implements prado\IService
Show file Open project: pradosoft/prado

Public Methods

Method Description
getEnabled ( ) : boolean
getID ( ) : string
init ( $config ) Initializes the service and attaches {@link run} to the RunService event of application.
run ( ) Runs the service.
setEnabled ( $value )
setID ( $value )

Method Details

getEnabled() public method

public getEnabled ( ) : boolean
return boolean whether the service is enabled

getID() public method

public getID ( ) : string
return string id of this service

init() public method

This method is required by IService and is invoked by application.
public init ( $config )

run() public method

Runs the service.
public run ( )

setEnabled() public method

public setEnabled ( $value )

setID() public method

public setID ( $value )