AdminPageFramework_Debug::getDetails PHP Метод

getDetails() публичный статический Метод

public static getDetails ( $mValue, $bEscape = true )
    public static function getDetails($mValue, $bEscape = true)
    {
        $_sValueWithDetails = self::_getArrayRepresentationSanitized(self::_getLegibleDetails($mValue));
        return $bEscape ? "<pre class='dump-array'>" . htmlspecialchars($_sValueWithDetails) . "</pre>" : $_sValueWithDetails;
    }

Usage Example

 private function _getDebugInfo($aField)
 {
     if (!$this->_shouldShowDebugInfo($aField)) {
         return '';
     }
     $_oToolTip = new AdminPageFramework_Form_View___ToolTip(array('title' => $this->oMsg->get('field_arguments'), 'dash-icon' => 'dashicons-info', 'icon_alt_text' => '[' . $this->oMsg->get('debug') . ' ]', 'content' => AdminPageFramework_Debug::getDetails($aField) . '<span class="admin-page-framework-info">' . $this->getFrameworkNameVersion() . '  (' . $this->oMsg->get('debug_info_will_be_disabled') . ')' . '</span>', 'attributes' => array('container' => array('class' => 'debug-info-field-arguments'))), $aField['field_id'] . '_debug');
     return $_oToolTip->get();
 }