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/TApplication.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'framework/TApplication.php') diff --git a/framework/TApplication.php b/framework/TApplication.php index 8c4f65f0..b61fa30d 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -38,6 +38,10 @@ require_once(PRADO_DIR.'/Security/TSecurityManager.php'); * Includes TPageService class (default service) */ require_once(PRADO_DIR.'/Web/Services/TPageService.php'); +/** + * Includes TAssetManager class + */ +require_once(PRADO_DIR.'/Web/TAssetManager.php'); /** @@ -252,6 +256,10 @@ class TApplication extends TComponent * @var TSecurityManager security manager module */ private $_security=null; + /** + * @var TAssetManager asset manager module + */ + private $_assetManager=null; /** * @var TAuthorizationRuleCollection collection of authorization rules */ @@ -677,6 +685,27 @@ class TApplication extends TComponent $this->_security=$sm; } + /** + * @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 IStatePersister application state persister */ -- cgit v1.2.3