diff options
author | xue <> | 2006-02-16 22:48:18 +0000 |
---|---|---|
committer | xue <> | 2006-02-16 22:48:18 +0000 |
commit | e9bfba959b6d655ed2eba71e4f2a618237d68698 (patch) | |
tree | 7e9160367d627a13d177c104802dc343f2f32e33 /framework/Web/Services/TPageService.php | |
parent | a2cf28f9759c9a1b385914ad64b4f74470f8703b (diff) |
Modified asset manipulation APIs.
Diffstat (limited to 'framework/Web/Services/TPageService.php')
-rw-r--r-- | framework/Web/Services/TPageService.php | 42 |
1 files changed, 1 insertions, 41 deletions
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.
@@ -122,10 +120,6 @@ class TPageService extends TService */
private $_initialized=false;
/**
- * @var TAssetManager asset manager
- */
- private $_assetManager=null;
- /**
* @var TThemeManager theme manager
*/
private $_themeManager=null;
@@ -323,27 +317,6 @@ class TPageService extends TService }
/**
- * @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
*/
public function getThemeManager()
@@ -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);
- }
}
|