1 : <?php
2 : /**
3 : * TModule 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: TModule.php 1398 2006-09-08 19:31:03Z xue $
10 : * @package System
11 : */
12 :
13 : /**
14 : * TModule class.
15 : *
16 : * TModule implements the basic methods required by IModule and may be
17 : * used as the basic class for application modules.
18 : *
19 : * @author Qiang Xue <qiang.xue@gmail.com>
20 : * @version $Id: TModule.php 1398 2006-09-08 19:31:03Z xue $
21 : * @package System
22 : * @since 3.0
23 : */
24 : abstract class TModule extends TApplicationComponent implements IModule
25 : {
26 : /**
27 : * @var string module id
28 : */
29 : private $_id;
30 :
31 : /**
32 : * Initializes the module.
33 : * This method is required by IModule and is invoked by application.
34 : * @param TXmlElement module configuration
35 : */
36 : public function init($config)
37 : {
38 42 : }
39 :
40 : /**
41 : * @return string id of this module
42 : */
43 : public function getID()
44 : {
45 0 : return $this->_id;
46 : }
47 :
48 : /**
49 : * @param string id of this module
50 : */
51 : public function setID($value)
52 : {
53 0 : $this->_id=$value;
54 0 : }
55 : }
56 :
57 : ?>
|