Index: trunk/core/kernel/utility/params.php
===================================================================
diff -u -r939 -r1339
--- trunk/core/kernel/utility/params.php (.../params.php) (revision 939)
+++ trunk/core/kernel/utility/params.php (.../params.php) (revision 1339)
@@ -39,7 +39,8 @@
function Set($name, $val)
{
//echo "sessing params: [$name] = [$val] (class: ".get_class($this).")
";
- $this->_Params[strtolower($name)] = $val;
+// $this->_Params[strtolower($name)] = $val;
+ $this->_Params[$name] = $val;
}
/**
@@ -64,7 +65,7 @@
function Get($name, $mode=FALSE_ON_NULL)
{
// echo " name : '$name' || mode : $mode
";
- $name = strtolower($name);
+ //$name = strtolower($name);
if (array_key_exists($name, $this->_Params))
return $this->_Params[$name];
else
@@ -85,7 +86,8 @@
}
else {*/
foreach ($params as $name => $val)
- $this->Set(strtolower($name), $val);
+// $this->Set(strtolower($name), $val);
+ $this->Set($name, $val);
//}
}
@@ -101,6 +103,39 @@
}
}
+class kArray extends kBase {
+ var $_Array;
+
+ /**
+ * Returns array value with any deep key
+ *
+ * @return mixed
+ * @todo array_unshift doesn't accept parameters by reference, fix it's usage in this method
+ */
+ function GetArrayValue()
+ {
+ $args = func_get_args();
+ array_unshift($args, &$this->_Array);
+ return call_user_func_array('getArrayValue', $args);
+ }
+
+ function SetArrayValue()
+ {
+ $args = func_get_args();
+ $value = array_pop($args);
+
+ $arr =& $this->_Array;
+ for ($i=0; $i