wCMF
3.6
|
Public Member Functions | |
in_array_i ($str, $array) | |
get_matching_values_i ($str, $array) | |
key_array_splice (&$input, $key_ofs, $length=null, $replacement=null) | |
key_array_rename (&$input, $oldname, $newname) | |
array_insert (&$input, $pos, &$val, $unique=true) | |
array_remove (&$input, &$val) | |
array_walk_recursive (&$input, $funcname, $userdata="") | |
array_unique_by_oid ($objArray) | |
getPrevNextOIDs ($oid, &$objList, $wrap) | |
ArrayUtil provides support for array manipulation.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 27 of file class.ArrayUtil.php.
ArrayUtil::in_array_i | ( | $str, | |
$array | |||
) |
Definition at line 32 of file class.ArrayUtil.php.
References get_matching_values_i().
ArrayUtil::get_matching_values_i | ( | $str, | |
$array | |||
) |
Definition at line 42 of file class.ArrayUtil.php.
Referenced by InifileParser\getSection(), InifileParser\getValue(), and in_array_i().
ArrayUtil::key_array_splice | ( | & | $input, |
$key_ofs, | |||
$length = null , |
|||
$replacement = null |
|||
) |
Definition at line 49 of file class.ArrayUtil.php.
Referenced by key_array_rename().
ArrayUtil::key_array_rename | ( | & | $input, |
$oldname, | |||
$newname | |||
) |
Definition at line 93 of file class.ArrayUtil.php.
References key_array_splice().
Referenced by ConfigController\renameControlNames(), InifileParser\renameKey(), and InifileParser\renameSection().
ArrayUtil::array_insert | ( | & | $input, |
$pos, | |||
& | $val, | ||
$unique = true |
|||
) |
Definition at line 109 of file class.ArrayUtil.php.
Referenced by Node\addChild(), and Node\updateParent().
ArrayUtil::array_remove | ( | & | $input, |
& | $val | ||
) |
Definition at line 124 of file class.ArrayUtil.php.
Referenced by Node\deleteChild().
ArrayUtil::array_walk_recursive | ( | & | $input, |
$funcname, | |||
$userdata = "" |
|||
) |
Recursivly walk an array
Definition at line 133 of file class.ArrayUtil.php.
Referenced by HierarchicalFormat\deserialize(), and HierarchicalFormat\serialize().
ArrayUtil::array_unique_by_oid | ( | $objArray | ) |
Object Id array helper methods
Definition at line 147 of file class.ArrayUtil.php.
ArrayUtil::getPrevNextOIDs | ( | $oid, | |
& | $objList, | ||
$wrap | |||
) |
Get the previous and the next object id from an object list, based on the given oid. If wrap is false, null is returned for prevOID if oid is at the beginning of the list and for the end respectively. The list is wrapped at beginning and end, if wrap is true.
oid | The marker object id |
objList | A reference to the object list |
wrap | True/False wether to wrap the list or not |
Definition at line 174 of file class.ArrayUtil.php.