XOOPS  2.6.0
Xoops_Utils Class Reference

Static Public Member Functions

static arrayRecursiveDiff (array $aArray1, array $aArray2)
 
static arrayRecursiveMerge (array $data, $merge)
 
static dumpFile ($file, $echo=true, $exit=false)
 
static dumpVar ($var, $echo=true, $exit=false)
 

Detailed Description

Author
trabis lusop.nosp@m.oema.nosp@m.s@gma.nosp@m.il.c.nosp@m.om
Version
$Id$

Definition at line 19 of file Utils.php.

Member Function Documentation

static Xoops_Utils::arrayRecursiveDiff ( array  $aArray1,
array  $aArray2 
)
static

Support for recursive array diff Needed for php 5.4.3 warning issues

Parameters
array$aArray1
array$aArray2
Returns
array

Definition at line 77 of file Utils.php.

Referenced by XoopsThemeBlocksPlugin\buildBlock().

Here is the caller graph for this function:

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$dataArray to be merged
mixed$mergeArray 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().

Here is the caller graph for this function:

static Xoops_Utils::dumpFile (   $file,
  $echo = true,
  $exit = false 
)
static

Output a dump of a file

Parameters
mixed$filefile 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

Output a dump of a variable

Parameters
mixed$varvariable which will be dumped
bool$echo
bool$exit
Returns
string

Definition at line 30 of file Utils.php.

References $msg, $myts, $var, and MyTextSanitizer\getInstance().

Here is the call graph for this function:


The documentation for this class was generated from the following file: