summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateManager.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/Web/UI/TTemplateManager.php
parenta2cf28f9759c9a1b385914ad64b4f74470f8703b (diff)
Modified asset manipulation APIs.
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r--framework/Web/UI/TTemplateManager.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index 4c71de51..67bda1b2 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -183,10 +183,6 @@ class TTemplate extends TComponent implements ITemplate
*/
private $_tplFile=null;
/**
- * @var TAssetManager asset manager
- */
- private $_assetManager;
- /**
* @var integer the line number that parsing starts from (internal use)
*/
private $_startingLine=0;
@@ -264,7 +260,6 @@ class TTemplate extends TComponent implements ITemplate
{
if(($page=$tplControl->getPage())===null)
$page=$this->getService()->getRequestedPage();
- $this->_assetManager=$this->getService()->getAssetManager();
$controls=array();
foreach($this->_tpl as $key=>$object)
{
@@ -376,7 +371,7 @@ class TTemplate extends TComponent implements ITemplate
$component->$setter($value[1]);
break;
case self::CONFIG_ASSET: // asset URL
- $url=$this->_assetManager->publishFilePath($this->_contextPath.'/'.$value[1]);
+ $url=$this->publishFilePath($this->_contextPath.'/'.$value[1]);
$component->$setter($url);
break;
case self::CONFIG_PARAMETER: // application parameter
@@ -416,7 +411,7 @@ class TTemplate extends TComponent implements ITemplate
$component->setSubProperty($name,$value[1]);
break;
case self::CONFIG_ASSET: // asset URL
- $url=$this->_assetManager->publishFilePath($this->_contextPath.'/'.$value[1]);
+ $url=$this->publishFilePath($this->_contextPath.'/'.$value[1]);
$component->setSubProperty($name,$url);
break;
case self::CONFIG_PARAMETER: // application parameter