Exemplo n.º 1
0
 /**
  * Retrieves the output of the given array contents.
  * 
  * If a file pass is given, it saves the output in the file.
  * 
  * @remark      An alias of getArray() method.
  * @since       3.2.0
  */
 public static function get($asArray, $sFilePath = null, $bEscape = true)
 {
     if (!self::isDebugModeEnabled()) {
         return null;
     }
     return parent::get($asArray, $sFilePath, $bEscape);
 }
 private function _outputDataByType($vData, $sFormatType)
 {
     switch (strtolower($sFormatType)) {
         case 'text':
             if (in_array(gettype($vData), array('array', 'object'))) {
                 echo AmazonAutoLinks_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;
     }
 }