summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/cvar.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-10-23 07:34:27 +0000
commit28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89 (patch)
tree8281ccd48964ee0dd11c5ea689091fa3cef706fb /frontends/php/include/classes/cvar.inc.php
parent495799b2aa61aab23d74d7faa110a0cd09d59bf0 (diff)
- developed group permission system (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3371 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/cvar.inc.php')
-rw-r--r--frontends/php/include/classes/cvar.inc.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/frontends/php/include/classes/cvar.inc.php b/frontends/php/include/classes/cvar.inc.php
index 7a86d0bf..384bf607 100644
--- a/frontends/php/include/classes/cvar.inc.php
+++ b/frontends/php/include/classes/cvar.inc.php
@@ -53,17 +53,22 @@
if(is_null($value)) return;
+ $this->ParseValue($this->var_name, $value);
+ }
+
+ function ParseValue($name, $value)
+ {
if(is_array($value))
{
- foreach($value as $item)
+ foreach($value as $itemid => $item)
{
if( null == $item ) continue;
- array_push($this->var_container, new CVarTag($this->var_name.'[]', $item));
+ $this->ParseValue($name.'['.$itemid.']', $item);
}
return;
}
- array_push($this->var_container, new CVarTag($this->var_name, $value));
+ array_push($this->var_container, new CVarTag($name, $value));
}
function ToString()