diff options
| -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()
  | 
