]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/framework/TModule.php
baculum: Wizards view improvements
[bacula/bacula] / gui / baculum / framework / TModule.php
1 <?php
2 /**
3  * TModule class file.
4  *
5  * @author Qiang Xue <qiang.xue@gmail.com>
6  * @link https://github.com/pradosoft/prado
7  * @copyright Copyright &copy; 2005-2016 The PRADO Group
8  * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9  * @package System
10  */
11
12 /**
13  * TModule class.
14  *
15  * TModule implements the basic methods required by IModule and may be
16  * used as the basic class for application modules.
17  *
18  * @author Qiang Xue <qiang.xue@gmail.com>
19  * @package System
20  * @since 3.0
21  */
22 abstract class TModule extends TApplicationComponent implements IModule
23 {
24         /**
25          * @var string module id
26          */
27         private $_id;
28
29         /**
30          * Initializes the module.
31          * This method is required by IModule and is invoked by application.
32          * @param TXmlElement module configuration
33          */
34         public function init($config)
35         {
36         }
37
38         /**
39          * @return string id of this module
40          */
41         public function getID()
42         {
43                 return $this->_id;
44         }
45
46         /**
47          * @param string id of this module
48          */
49         public function setID($value)
50         {
51                 $this->_id=$value;
52         }
53 }
54