Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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 &copy; 2005-2008 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: TModule.php 2541 2008-10-21 15:05:13Z qiang.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 2541 2008-10-21 15:05:13Z qiang.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
	}
39
 
40
	/**
41
	 * @return string id of this module
42
	 */
43
	public function getID()
44
	{
45
		return $this->_id;
46
	}
47
 
48
	/**
49
	 * @param string id of this module
50
	 */
51
	public function setID($value)
52
	{
53
		$this->_id=$value;
54
	}
55
}
56