Class AdminPageFramework_ArrayHandler
Provides methods to help handle array contents.
This is useful when you edit multi-dimensional arrays.
Usage
Instantiate the class by passing an array to manipulate. Then use theset()
, get()
, and delete()
methods to
retrieve/modify the contents.
Example
$_aArray = array( 'a' => array( 'a_i' => array( 'a_i_x' => array( 'foo', 'bar', ), ), ) ); $_oData = new AdminPageFramework_ArrayHandler( $_aArray ); $_oData->set( array( 'a', 'a_i', 'a_i_y' ), 'A New Value' ); var_dump( $_oData->get( 'a', 'a_i' ) ); $_oData->delete( array( 'a', 'a_i' ) ); var_dump( $_oData->get( 'a' ) );
Package: AdminPageFramework\Common\Utility
Since: 3.6.0
Extends: AdminPageFramework_FrameworkUtility
Located at factory/_common/utility/AdminPageFramework_ArrayHandler.php
Since: 3.6.0
Extends: AdminPageFramework_FrameworkUtility
Located at factory/_common/utility/AdminPageFramework_ArrayHandler.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|