diff options
author | xue <> | 2006-04-03 17:44:30 +0000 |
---|---|---|
committer | xue <> | 2006-04-03 17:44:30 +0000 |
commit | 5bdb9190257a95efc810668d96d565c4aa05c48d (patch) | |
tree | 69e507ea6f8d025c819e55d8e8c5c6bfe30347d3 /framework | |
parent | e35934d2e5d3744a4405b87bb1a7b8730942cc14 (diff) |
Removed redundant setID and getID.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/Services/TPageService.php | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 8590540f..01e46697 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -70,7 +70,7 @@ Prado::using('System.Web.UI.TThemeManager'); *
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Revision: $ $Date: $
- * @package System.Services
+ * @package System.Web.Services
* @since 3.0
*/
class TPageService extends TService
@@ -92,10 +92,6 @@ class TPageService extends TService */
const PAGE_FILE_EXT='.page';
/**
- * @var string id of this service (page)
- */
- private $_id='page';
- /**
* @var string root path of pages
*/
private $_basePath=null;
@@ -129,6 +125,15 @@ class TPageService extends TService private $_templateManager=null;
/**
+ * Constructor.
+ * Sets default service ID to 'page'.
+ */
+ public function __construct()
+ {
+ $this->setID('page');
+ }
+
+ /**
* Initializes the service.
* This method is required by IService interface and is invoked by application.
* @param TXmlElement service configuration
@@ -283,22 +288,6 @@ class TPageService extends TService }
/**
- * @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;
- }
-
- /**
* @return TTemplateManager template manager
*/
public function getTemplateManager()
|