Index: branches/5.2.x/core/kernel/utility/params.php =================================================================== diff -u -N -r13840 -r14095 --- branches/5.2.x/core/kernel/utility/params.php (.../params.php) (revision 13840) +++ branches/5.2.x/core/kernel/utility/params.php (.../params.php) (revision 14095) @@ -1,6 +1,6 @@ SplitParamsStr($params_str); + parent::__construct(); + + if($params_str != '') { + $this->SplitParamsStr($params_str); + } } /** @@ -110,7 +119,7 @@ } } - class kArray extends kBase { + class kArray extends kBase implements kiCacheable { var $_Array; /** @@ -122,7 +131,8 @@ function GetArrayValue() { $args = func_get_args(); - array_unshift_ref($args, $this->_Array); + kUtil::array_unshift_ref($args, $this->_Array); + return call_user_func_array('getArrayValue', $args); } @@ -141,4 +151,28 @@ } $arr = $value; } + + /** + * Sets data from cache to object + * + * @param Array $data + * @access public + */ + public function setFromCache(&$data) + { + $this->_Array = $data['TagsAggregator.data']; + } + + /** + * Gets object data for caching + * + * @access public + * @return Array + */ + public function getToCache() + { + return Array ( + 'TagsAggregator.data' => $this->_Array, + ); + } } \ No newline at end of file