[ Index ] |
|
Code source de PRADO 3.0.6 |
1 <?php 2 /** 3 * TService class file. 4 * 5 * @author Qiang Xue <qiang.xue@gmail.com> 6 * @link http://www.pradosoft.com/ 7 * @copyright Copyright © 2005 PradoSoft 8 * @license http://www.pradosoft.com/license/ 9 * @version $Id: TService.php 1397 2006-09-07 07:55:53Z wei $ 10 * @package System 11 */ 12 13 /** 14 * TService class. 15 * 16 * TService implements the basic methods required by IService and may be 17 * used as the basic class for application services. 18 * 19 * @author Qiang Xue <qiang.xue@gmail.com> 20 * @version $Id: TService.php 1397 2006-09-07 07:55:53Z wei $ 21 * @package System 22 * @since 3.0 23 */ 24 abstract class TService extends TApplicationComponent implements IService 25 { 26 /** 27 * @var string service id 28 */ 29 private $_id; 30 31 /** 32 * Initializes the service and attaches {@link run} to the RunService event of application. 33 * This method is required by IService and is invoked by application. 34 * @param TXmlElement module configuration 35 */ 36 public function init($config) 37 { 38 } 39 40 /** 41 * @return string id of this service 42 */ 43 public function getID() 44 { 45 return $this->_id; 46 } 47 48 /** 49 * @param string id of this service 50 */ 51 public function setID($value) 52 { 53 $this->_id=$value; 54 } 55 56 /** 57 * Runs the service. 58 */ 59 public function run() 60 { 61 } 62 } 63 64 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |