blob: 5cdbbcff2ed69c008cf1bcbfa5b326ab3c5fa780 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?php
/**
* Core interfaces essential for TApplication class.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
* @package System
*/
/**
* IService interface.
*
* This interface must be implemented by services.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @package System
* @since 3.0
*/
interface IService
{
/**
* Initializes the service.
* @param TXmlElement the configuration for the service
*/
public function init($config);
/**
* @return string ID of the service
*/
public function getID();
/**
* @param string ID of the service
*/
public function setID($id);
/**
* @return boolean whether the service is enabled
*/
public function getEnabled();
/**
* @param boolean whether the service is enabled
*/
public function setEnabled($value);
/**
* Runs the service.
*/
public function run();
}
|