summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-19 14:47:21 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-19 14:47:21 +0000
commit979fcceb99e555800fdfbc2cecf4ba585e780b73 (patch)
tree1c00b2ade37f4fa1ef285c070ddfe3e0d4a70247 /frontends/php/include/classes
parentd4f46d541400d6a6a55924d27c9c43430aade509 (diff)
downloadzabbix-979fcceb99e555800fdfbc2cecf4ba585e780b73.tar.gz
zabbix-979fcceb99e555800fdfbc2cecf4ba585e780b73.tar.xz
zabbix-979fcceb99e555800fdfbc2cecf4ba585e780b73.zip
- code optimization (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2744 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes')
-rw-r--r--frontends/php/include/classes/ccombobox.inc.php2
-rw-r--r--frontends/php/include/classes/ctable.inc.php7
-rw-r--r--frontends/php/include/classes/ctag.inc.php20
-rw-r--r--frontends/php/include/classes/ctextarea.inc.php2
-rw-r--r--frontends/php/include/classes/ctextbox.inc.php2
5 files changed, 20 insertions, 13 deletions
diff --git a/frontends/php/include/classes/ccombobox.inc.php b/frontends/php/include/classes/ccombobox.inc.php
index 69a17636..ea579803 100644
--- a/frontends/php/include/classes/ccombobox.inc.php
+++ b/frontends/php/include/classes/ccombobox.inc.php
@@ -141,7 +141,7 @@
function Show()
{
if(isset($this->caption))
- print ($this->caption." ");
+ echo $this->caption." ";
parent::Show();
}
}
diff --git a/frontends/php/include/classes/ctable.inc.php b/frontends/php/include/classes/ctable.inc.php
index e82e5429..b0d5485a 100644
--- a/frontends/php/include/classes/ctable.inc.php
+++ b/frontends/php/include/classes/ctable.inc.php
@@ -242,5 +242,12 @@
return parent::AddItem($value);
}
+/* function Show()
+ {
+ ob_start();
+ parent::Show();
+ ob_end_flush();
+ }
+*/
}
?>
diff --git a/frontends/php/include/classes/ctag.inc.php b/frontends/php/include/classes/ctag.inc.php
index 9ddc0b20..82caa5b8 100644
--- a/frontends/php/include/classes/ctag.inc.php
+++ b/frontends/php/include/classes/ctag.inc.php
@@ -176,25 +176,25 @@
/* protected */
function ShowTagStart()
{
- print ($this->tag_start);
- print("<".$this->name);
+ echo $this->tag_start;
+ echo "<".$this->name;
foreach($this->options as $key => $value)
{
- print (" $key=\"$value\"");
+ echo " $key=\"$value\"";
}
if($this->paired=='yes')
- print (">");
+ echo ">";
else
- print ("/>");
+ echo "/>";
- print ($this->tag_body_start);
+ echo $this->tag_body_start;
}
function ShowTagItem(&$item)
{
if(is_null($item)) return;
elseif(is_object($item))$item->Show();
- else print (strval($item));
+ else echo strval($item);
}
function ShowTagBody()
{
@@ -203,12 +203,12 @@
}
function ShowTagEnd()
{
- print ($this->tag_body_end);
+ echo $this->tag_body_end;
if($this->paired=='yes')
{
- print ("</".$this->name.">");
- print ($this->tag_end);
+ echo "</".$this->name.">";
+ echo $this->tag_end;
}
}
function SetEnabled($value='yes')
diff --git a/frontends/php/include/classes/ctextarea.inc.php b/frontends/php/include/classes/ctextarea.inc.php
index e9e75530..5ea51f70 100644
--- a/frontends/php/include/classes/ctextarea.inc.php
+++ b/frontends/php/include/classes/ctextarea.inc.php
@@ -39,7 +39,7 @@
function Show()
{
if(isset($this->caption))
- print ($this->caption." ");
+ echo $this->caption." ";
parent::Show();
}
function SetName($value='textarea')
diff --git a/frontends/php/include/classes/ctextbox.inc.php b/frontends/php/include/classes/ctextbox.inc.php
index 5629f2b6..6345b342 100644
--- a/frontends/php/include/classes/ctextbox.inc.php
+++ b/frontends/php/include/classes/ctextbox.inc.php
@@ -37,7 +37,7 @@
function Show()
{
if(isset($this->caption))
- print ($this->caption." ");
+ echo $this->caption." ";
parent::Show();
}
function SetReadonly($value='yes')