AdminPageFramework_Debug::get PHP Метод

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

public static get ( $asArray, $sFilePath = null, $bEscape = true )
    public static function get($asArray, $sFilePath = null, $bEscape = true)
    {
        if ($sFilePath) {
            self::log($asArray, $sFilePath);
        }
        return $bEscape ? "<pre class='dump-array'>" . htmlspecialchars(self::_getLegible($asArray)) . "</pre>" : self::_getLegible($asArray);
    }

Usage Example

 private function _outputDataByType($vData, $sFormatType)
 {
     switch (strtolower($sFormatType)) {
         case 'text':
             if (in_array(gettype($vData), array('array', 'object'))) {
                 echo AdminPageFramework_Debug::get($vData, null, false);
             }
             echo $vData;
             return;
         case 'json':
             echo json_encode((array) $vData);
             return;
         case 'array':
         default:
             echo serialize((array) $vData);
             return;
     }
 }
All Usage Examples Of AdminPageFramework_Debug::get