Class AdminPageFramework_Debug_Utility
A utility class for the debug classes.
Package: AdminPageFramework\Common\Utility
Since: 3.9.0
Located at factory/_common/utility/debug/AdminPageFramework_Debug_Utility.php
Since: 3.9.0
Located at factory/_common/utility/debug/AdminPageFramework_Debug_Utility.php
Methods summary
public static
mixed
|
#
getObjectName( mixed $mItem )
Returns an object name if it is an object. Otherwise, the value itself. This is used to convert objects into a string in array-walk functions as objects tent to get large when they are converted to a string representation. Parameters
Returnsmixed Since
3.8.9
3.8.32 Changed the visibility scope to public from private to be passed as a callback for outside the current class scope. And renamed from ___getObjectName() .3.9.0 Moved from AdminPageFramework_Debug_Base . |
public static
array
|
#
getSlicedByDepth( array $aSubject, integer $iDepth = 0, string $sMore = '(array truncated) ...' )
Slices an array by the given depth. Parameters
Returnsarray Since
3.4.4
3.8.9 Changed it not to convert an object into an array. 3.8.9 Changed the scope to private. 3.8.9 Renamed from getSliceByDepth() .3.8.22 Show a message when truncated by depth. Added the $sMore
parameter. |
public static
string
|
#
getArrayRepresentationSanitized( string $sString )
Parameters
Returnsstring Since
3.8.9
3.9.0 Changed the visibility scope to public from protected. Moved from AdminPageFramework_Debug_Base . |