summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2006-02-16 22:48:18 +0000
committerxue <>2006-02-16 22:48:18 +0000
commite9bfba959b6d655ed2eba71e4f2a618237d68698 (patch)
tree7e9160367d627a13d177c104802dc343f2f32e33 /framework/TApplication.php
parenta2cf28f9759c9a1b385914ad64b4f74470f8703b (diff)
Modified asset manipulation APIs.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php29
1 files changed, 29 insertions, 0 deletions
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');
/**
@@ -253,6 +257,10 @@ class TApplication extends TComponent
*/
private $_security=null;
/**
+ * @var TAssetManager asset manager module
+ */
+ private $_assetManager=null;
+ /**
* @var TAuthorizationRuleCollection collection of authorization rules
*/
private $_authRules=null;
@@ -678,6 +686,27 @@ class TApplication extends TComponent
}
/**
+ * @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
*/
public function getApplicationStatePersister()