34 $msg =
"<div style='padding: 5px; font-weight: bold'>{$msg}</div>";
57 $msg =
"<div style='padding: 5px; font-weight: bold'>{$msg}</div>";
81 foreach ($aArray1 as $mKey => $mValue) {
82 if (array_key_exists($mKey, $aArray2)) {
83 if (is_array($mValue) AND is_array($aArray2[$mKey])) {
84 $aRecursiveDiff = self::arrayRecursiveDiff($mValue, $aArray2[$mKey]);
85 if (count($aRecursiveDiff)) {
86 $aReturn[$mKey] = $aRecursiveDiff;
89 if ($mValue != $aArray2[$mKey]) {
90 $aReturn[$mKey] = $mValue;
94 $aReturn[$mKey] = $mValue;
115 $args = func_get_args();
116 $return = current($args);
118 while (($arg = next($args)) !==
false) {
119 foreach ((array)$arg as $key => $val) {
120 if (!empty($return[$key]) && is_array($return[$key]) && is_array($val)) {
121 $return[$key] = self::arrayRecursiveMerge($return[$key], $val);
122 } elseif (is_int($key)) {
123 if (!in_array($val, $return)) $return[] = $val;
125 $return[$key] = $val;
static dumpFile($file, $echo=true, $exit=false)
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
static dumpVar($var, $echo=true, $exit=false)
if(!is_object($module)||!$module->getVar('isactive')) $msg
static arrayRecursiveMerge(array $data, $merge)
static arrayRecursiveDiff(array $aArray1, array $aArray2)