Admin Page Framework Documentation

Packages

  • AdminPageFramework
    • Common
      • Factory
      • Form
        • FieldType
      • Utility
    • Factory
      • AdminPage
      • MetaBox
      • NetworkAdmin
      • PageMetaBox
      • PostType
      • TaxonomyField
      • TermMeta
      • UserMeta
      • Widget
    • Utility

Classes

  • AdminPageFramework_AdminNotice
  • AdminPageFramework_ArrayHandler
  • AdminPageFramework_Debug
  • AdminPageFramework_Debug_Base
  • AdminPageFramework_Debug_Log
  • AdminPageFramework_Debug_Utility
  • AdminPageFramework_RegisterClasses

Resources

  • Tutorials
  • Support
  • Reporting Issues

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

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

$mItem
mixed
$mItem

Returns

mixed

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

$aSubject
array
$aSubject
$iDepth
integer
$iDepth
$sMore
string
$sMore

Returns

array

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

$sString
string
$sString

Returns

string

Since

3.8.9
3.9.0 Changed the visibility scope to public from protected. Moved from AdminPageFramework_Debug_Base.

Magic methods summary

Related

Direct known subclasses

AdminPageFramework_Debug_Base

Indirect known subclasses

AdminPageFramework_Debug, AdminPageFramework_Debug_Log

If you find undocumented functionality, please report it here.

Admin Page Framework