AdminPageFramework_ExportOptions::_outputDataByType PHP Method

_outputDataByType() private method

private _outputDataByType ( $vData, $sFormatType )
    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;
        }
    }