Static Public Member Functions

ArrayUtils Class Reference
[Various accompanying utilities]

Inheritance diagram for ArrayUtils:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static regularizeList ($ids, $objects)
 orders $objects list by $ids order
static convertObjectList ($list=null)
static getIdsArray ($objectsList)
static & convertToPlainList ($list, $key)
static getArrayVar (&$array, $var)
static columnFromSet ($column, $array)
static mergeUnique ()
static countNonemptyValues ($array)
static isEmpty (array $array)
static flatToDimensional ($array)
 in: array(1, 2, 3, 4) out: array(1 => array(2 => array(3 => 4)))
static mergeRecursiveUnique ($one, $two)
static getMirrorValues ($array)
static mergeSortedLists ($list1, $list2, Comparator $comparator, $compareValueGetter=null, $limit=null)

Detailed Description

Definition at line 15 of file ArrayUtils.class.php.


Member Function Documentation

static ArrayUtils::columnFromSet ( column,
array 
) [static]

Definition at line 85 of file ArrayUtils.class.php.

References Assert::isArray().

Here is the call graph for this function:

static ArrayUtils::convertObjectList ( list = null  )  [static]

Definition at line 34 of file ArrayUtils.class.php.

Referenced by regularizeList().

static& ArrayUtils::convertToPlainList ( list,
key 
) [static]

Definition at line 65 of file ArrayUtils.class.php.

static ArrayUtils::countNonemptyValues ( array  )  [static]

Definition at line 111 of file ArrayUtils.class.php.

References Assert::isArray().

Here is the call graph for this function:

static ArrayUtils::flatToDimensional ( array  )  [static]

in: array(1, 2, 3, 4) out: array(1 => array(2 => array(3 => 4)))

Definition at line 136 of file ArrayUtils.class.php.

References Assert::isArray().

Here is the call graph for this function:

static ArrayUtils::getArrayVar ( &$  array,
var 
) [static]

Definition at line 75 of file ArrayUtils.class.php.

Referenced by PrimitiveRange::importSingle().

static ArrayUtils::getIdsArray ( objectsList  )  [static]
static ArrayUtils::getMirrorValues ( array  )  [static]
Deprecated:
by array_combine($array, $array)

Definition at line 182 of file ArrayUtils.class.php.

References Assert::isArray(), and Assert::isTrue().

Here is the call graph for this function:

static ArrayUtils::isEmpty ( array $  array  )  [static]

Definition at line 123 of file ArrayUtils.class.php.

static ArrayUtils::mergeRecursiveUnique ( one,
two 
) [static]

Definition at line 151 of file ArrayUtils.class.php.

References Assert::isArray().

Referenced by ApplicationUrl::addApplicationScope(), ApplicationUrl::addUserScope(), ApplicationUrl::currentHref(), and ApplicationUrl::scopeHref().

Here is the call graph for this function:

static ArrayUtils::mergeSortedLists ( list1,
list2,
Comparator comparator,
compareValueGetter = null,
limit = null 
) [static]

Definition at line 201 of file ArrayUtils.class.php.

References Comparator::compare().

Here is the call graph for this function:

static ArrayUtils::mergeUnique (  )  [static]

Definition at line 97 of file ArrayUtils.class.php.

References Assert::isArray().

Here is the call graph for this function:

static ArrayUtils::regularizeList ( ids,
objects 
) [static]

orders $objects list by $ids order

Definition at line 18 of file ArrayUtils.class.php.

References convertObjectList().

Referenced by GenericDAO::getListByIds().

Here is the call graph for this function:


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