From e9bfba959b6d655ed2eba71e4f2a618237d68698 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 16 Feb 2006 22:48:18 +0000 Subject: Modified asset manipulation APIs. --- framework/Web/Services/TPageService.php | 42 +-------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'framework/Web/Services/TPageService.php') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 32f7514c..bb80b902 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -16,7 +16,6 @@ Prado::using('System.Web.UI.TPage'); Prado::using('System.Web.UI.TTemplateManager'); Prado::using('System.Web.UI.TThemeManager'); -Prado::using('System.Web.UI.TAssetManager'); /** * TPageService class. @@ -47,10 +46,9 @@ Prado::using('System.Web.UI.TAssetManager'); * Configuration of a module in a subdirectory will overwrite its parent * directory's configuration, if both configurations refer to the same module. * - * By default, TPageService will automatically load three modules: + * By default, TPageService will automatically load two modules: * - {@link TTemplateManager} : manages page and control templates * - {@link TThemeManager} : manages themes used in a Prado application - * - {@link TAssetManager} : manages assets used in a Prado application. * * In page directory configurations, static authorization rules can also be specified, * which governs who and which roles can access particular pages. @@ -121,10 +119,6 @@ class TPageService extends TService * @var boolean whether service is initialized */ private $_initialized=false; - /** - * @var TAssetManager asset manager - */ - private $_assetManager=null; /** * @var TThemeManager theme manager */ @@ -322,27 +316,6 @@ class TPageService extends TService $this->_templateManager=$value; } - /** - * @return TAssetManager asset manager - */ - public function getAssetManager() - { - if(!$this->_assetManager) - { - $this->_assetManager=new TAssetManager; - $this->_assetManager->init(null); - } - return $this->_assetManager; - } - - /** - * @param TAssetManager asset manager - */ - public function setAssetManager(TAssetManager $value) - { - $this->_assetManager=$value; - } - /** * @return TThemeManager theme manager */ @@ -482,19 +455,6 @@ class TPageService extends TService { return $this->getRequest()->constructUrl($this->_id,$pagePath,$getParams,$encodeAmpersand); } - - /** - * Publishes a private asset and returns its URL. - * This method will publish a private asset (file or directory) - * and returns the URL to the asset. Note, if the asset refers to - * a directory, all contents under that directory will be published. - * @param string path of the asset that is either absolute or relative to the directory containing the current running script. - * @return string URL to the asset path. - */ - public function getAsset($path) - { - return $this->getAssetManager()->publishFilePath($path); - } } -- cgit v1.2.3