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
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode 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 méthode

public getEnabled ( ) : boolean
Résultat boolean whether the service is enabled

getID() public méthode

public getID ( ) : string
Résultat string id of this service

init() public méthode

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

run() public méthode

Runs the service.
public run ( )

setEnabled() public méthode

public setEnabled ( $value )

setID() public méthode

public setID ( $value )