summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-03-19 22:07:39 +0000
committergodzilla80@gmx.net <>2009-03-19 22:07:39 +0000
commitd634db87d432c87a092f1c4cee69a56914cbaa97 (patch)
tree2a681041b70b22b61f3325725d663d62f8338e50 /framework/Web/UI
parentde021710e1c0dae732e61ecb42a9ac60440f55ee (diff)
replace array_push() function calls with native language constuct if make sense
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/THtmlWriter.php4
-rw-r--r--framework/Web/UI/TTemplateManager.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/THtmlWriter.php b/framework/Web/UI/THtmlWriter.php
index 217b9663..9713d941 100644
--- a/framework/Web/UI/THtmlWriter.php
+++ b/framework/Web/UI/THtmlWriter.php
@@ -232,12 +232,12 @@ class THtmlWriter extends TApplicationComponent implements ITextWriter
if(isset(self::$_simpleTags[$tagName]))
{
$str.=' />';
- array_push($this->_openTags,'');
+ $this->_openTags[] = '';
}
else
{
$str.='>';
- array_push($this->_openTags,$tagName);
+ $this->_openTags[] = $tagName;
}
$this->_writer->write($str);
$this->_attributes=array();
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php
index f44d414c..6d44d7d7 100644
--- a/framework/Web/UI/TTemplateManager.php
+++ b/framework/Web/UI/TTemplateManager.php
@@ -608,7 +608,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
$tpl[$c++]=array($container,$type,$attributes);
if($str[strlen($str)-2]!=='/') // open tag
{
- array_push($stack,$type);
+ $stack[] = $type;
$container=$c-1;
}
}
@@ -695,7 +695,7 @@ class TTemplate extends TApplicationComponent implements ITemplate
else // regular property
{
$prop=strtolower($match[3][0]);
- array_push($stack,'@'.$prop);
+ $stack[] = '@'.$prop;
if(!$expectPropEnd)
{
if($matchStart>$textStart)