diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-22 09:14:12 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-22 09:14:12 +0100 |
commit | 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch) | |
tree | e870d29e21c14d5b1683d638dff978afe0a104fa /framework/Web/UI/TTemplate.php | |
parent | 53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff) |
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Web/UI/TTemplate.php')
-rw-r--r-- | framework/Web/UI/TTemplate.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/framework/Web/UI/TTemplate.php b/framework/Web/UI/TTemplate.php index f3a782b7..cf32c4cc 100644 --- a/framework/Web/UI/TTemplate.php +++ b/framework/Web/UI/TTemplate.php @@ -10,6 +10,12 @@ */ namespace Prado\Web\UI; +use Prado\Prado; +use Prado\TComponent; +use Prado\Web\Javascripts\TJavaScriptLiteral; +use Prado\Exceptions\TConfigurationException; +use Prado\Exceptions\TTemplateException; +use Prado\Exceptions\TException; /** * TTemplate implements PRADO template parsing logic. @@ -44,7 +50,7 @@ namespace Prado\Web\UI; * @package Prado\Web\UI * @since 3.0 */ -class TTemplate extends TApplicationComponent implements ITemplate +class TTemplate extends \Prado\TApplicationComponent implements ITemplate { /** * '<!--.*?--!>' - template comments @@ -206,7 +212,7 @@ class TTemplate extends TApplicationComponent implements ITemplate $properties=&$object[2]; if($component instanceof TControl) { - if($component instanceof TOutputCache) + if($component instanceof \Prado\Web\UI\WebControls\TOutputCache) $component->setCacheKeyPrefix($this->_hashCode.$key); $component->setTemplateControl($tplControl); if(isset($properties['id'])) @@ -641,7 +647,7 @@ class TTemplate extends TApplicationComponent implements ITemplate if($textStart<strlen($input)) $tpl[$c++]=array($container,substr($input,$textStart)); } - catch(Exception $e) + catch(\Exception $e) { if(($e instanceof TException) && ($e instanceof TTemplateException)) throw $e; @@ -796,7 +802,7 @@ class TTemplate extends TApplicationComponent implements ITemplate $className=substr($type,$pos+1); else $className=$type; - $class=new ReflectionClass($className); + $class=new \ReflectionClass($className); if(is_subclass_of($className,'TControl') || $className==='TControl') { foreach($attributes as $name=>$att) |