JArrayHelper
JArrayHelper is an array utility class for doing all sorts of odds and ends with arrays.
Located in /joomla/utilities/arrayhelper.php (line 23)
JArrayHelper (Subpackage Utilities)
Utility function to map an object to an array
- object The $p_obj: source object
- boolean $recurse: True to recurve through multi-level objects
- string $regex: An optional regular expression to match on field names
Extracts a column from an array of arrays or objects
- array $array: The source array
- string $index: The index of the column or name of object property
- &$array
Utility function to return a value from a named array or a specified default
- array $array: A named array
- string $name: The key to search for
- mixed $default: The default value to give if no key found
- string $type: Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)
- &$array
Utility function to sort an array of objects on a given field
- array $arr: An array of objects
- string $k: The key to sort on
- int $direction: Direction to sort in [1 = Ascending] [-1 = Descending]
- &$a
Function to convert array to integer values
- array $array: The source array to convert
- mixed $default: A default value (int|array) to assign if $array is not an array
- &$array
Utility function to map an array to a stdClass object.
- array $array: The array to map.
- string $calss: Name of the class to create
- &$array
- $class
- $array
- $inner_glue
- $outer_glue
- $keepOuterKey
Private callback function for sorting an array of objects on a key
- array $a: An array of objects
- array $b: An array of objects
- &$a
- &$b




JArrayHelper (Subpackage Utilities)
static