static Xoops_Utils::arrayRecursiveDiff |
( |
array |
$aArray1, |
|
|
array |
$aArray2 |
|
) |
| |
|
static |
static Xoops_Utils::arrayRecursiveMerge |
( |
array |
$data, |
|
|
|
$merge |
|
) |
| |
|
static |
This function can be thought of as a hybrid between PHP's array_merge
and array_merge_recursive
. The difference between this method and the built-in ones, is that if an array key contains another array, then Xoops_Utils::arrayRecursiveMerge() will behave in a recursive fashion (unlike array_merge
). But it will not act recursively for keys that contain scalar values (unlike array_merge_recursive
). Note: This function will work with an unlimited amount of arguments and typecasts non-array parameters into arrays.
- Parameters
-
array | $data | Array to be merged |
mixed | $merge | Array to merge with. The argument and all trailing arguments will be array cast when merged |
- Returns
- array Merged array http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::merge
Definition at line 113 of file Utils.php.
Referenced by Xoops\Core\HttpRequest\addDetector().
static Xoops_Utils::dumpFile |
( |
|
$file, |
|
|
|
$echo = true , |
|
|
|
$exit = false |
|
) |
| |
|
static |
Output a dump of a file
- Parameters
-
mixed | $file | file which will be dumped |
bool | $echo | |
bool | $exit | |
- Returns
- string
Definition at line 54 of file Utils.php.
References $file, and $msg.
static Xoops_Utils::dumpVar |
( |
|
$var, |
|
|
|
$echo = true , |
|
|
|
$exit = false |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: