From b4e9f6795206fab6b952f814ccf812677a34c635 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 7 Dec 2005 00:32:29 +0000 Subject: --- framework/core.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'framework/core.php') diff --git a/framework/core.php b/framework/core.php index 794384b4..efd091ad 100644 --- a/framework/core.php +++ b/framework/core.php @@ -310,6 +310,51 @@ interface IPageStatePersister public function save($state); } +/** + * TModule class. + * + * TModule implements the basic methods required by IModule and may be + * used as the basic class for application modules. + * + * @author Qiang Xue + * @version $Revision: $ $Date: $ + * @package System + * @since 3.0 + */ +class TModule extends TComponent implements IModule +{ + /** + * @var string module id + */ + private $_id; + + /** + * Initializes the module. + * This method is required by IModule and is invoked by application. + * @param TApplication application + * @param TXmlElement module configuration + */ + public function init($application,$config) + { + } + + /** + * @return string id of this module + */ + public function getID() + { + return $this->_id; + } + + /** + * @param string id of this module + */ + public function setID($value) + { + $this->_id=$value; + } +} + /** * PradoBase class. * -- cgit v1.2.3