wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
ArrayUtil Class Reference

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)
 

Detailed Description

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.

Id:
class.ArrayUtil.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 27 of file class.ArrayUtil.php.

Member Function Documentation

ArrayUtil::in_array_i (   $str,
  $array 
)

Definition at line 32 of file class.ArrayUtil.php.

References get_matching_values_i().

+ Here is the call graph for this function:

ArrayUtil::get_matching_values_i (   $str,
  $array 
)
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().

+ Here is the call graph for this function:

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 = "" 
)
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.

Parameters
oidThe marker object id
objListA reference to the object list
wrapTrue/False wether to wrap the list or not
Returns
An Array with two the previous and the next oid

Definition at line 174 of file class.ArrayUtil.php.


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