PHP Class AdminPageFramework_Utility_ArraySetter

Inheritance: extends AdminPageFramework_Utility_ArrayGetter
Mostra file Open project: michaeluno/admin-page-framework

Public Methods

Method Description
castArrayContents ( array $aModel, array $aSubject )
dropElementByValue ( array $aArray, $vValue )
dropElementsByKey ( array $aArray, $asKeys )
dropElementsByType ( array $aArray, $aTypes = ['array'] )
invertCastArrayContents ( array $aModel, array $aSubject )
numerizeElements ( array $aSubject )
setMultiDimensionalArray ( &$mSubject, array $aKeys, $mValue )
sortArrayByKey ( $a, $b, $sKey = 'order' )
uniteArrays ( )
uniteArraysRecursive ( $aPrecedence, $aDefault )
unsetDimensionalArrayElement ( &$mSubject, array $aKeys )

Method Details

castArrayContents() public static method

public static castArrayContents ( array $aModel, array $aSubject )
$aModel array
$aSubject array

dropElementByValue() public static method

public static dropElementByValue ( array $aArray, $vValue )
$aArray array

dropElementsByKey() public static method

public static dropElementsByKey ( array $aArray, $asKeys )
$aArray array

dropElementsByType() public static method

public static dropElementsByType ( array $aArray, $aTypes = ['array'] )
$aArray array

invertCastArrayContents() public static method

public static invertCastArrayContents ( array $aModel, array $aSubject )
$aModel array
$aSubject array

numerizeElements() public static method

public static numerizeElements ( array $aSubject )
$aSubject array

setMultiDimensionalArray() public static method

public static setMultiDimensionalArray ( &$mSubject, array $aKeys, $mValue )
$aKeys array

sortArrayByKey() public static method

public static sortArrayByKey ( $a, $b, $sKey = 'order' )

uniteArrays() public static method

public static uniteArrays ( )

uniteArraysRecursive() public static method

public static uniteArraysRecursive ( $aPrecedence, $aDefault )

unsetDimensionalArrayElement() public static method

public static unsetDimensionalArrayElement ( &$mSubject, array $aKeys )
$aKeys array