protected function getFormatOptionsFromPost()
    {
        $presetMode = post('format_preset');

        $options = [
            'delimiter' => null,
            'enclosure' => null,
            'escape' => null,
            'encoding' => null
        ];

        if ($presetMode == 'custom') {
            $options['delimiter'] = post('format_delimiter');
            $options['enclosure'] = post('format_enclosure');
            $options['escape'] = post('format_escape');
            $options['encoding'] = post('format_encoding');
        }

        return $options;
    }
protected function getFormatOptionsFromPost()
    {
        $presetMode = post('format_preset');

        $options = [
            'delimiter' => null,
            'enclosure' => null,
            'escape' => null,
            'encoding' => null
        ];

        if ($presetMode == 'custom') {
            $options['delimiter'] = post('format_delimiter');
            $options['enclosure'] = post('format_enclosure');
            $options['escape'] = post('format_escape');
            $options['encoding'] = post('format_encoding');
        }

        return $options;
    }
protected function getFormatOptionsFromPost ( ) { $ presetMode = post ( 'format_preset' ) ; $ options = [ 'delimiter' => null , 'enclosure' => null , 'escape' => null , 'encoding' => null ] ; if ( $ presetMode == 'custom' ) { $ options [ 'delimiter' ] = post ( 'format_delimiter' ) ; $ options [ 'enclosure' ] = post ( 'format_enclosure' ) ; $ options [ 'escape' ] = post ( 'format_escape' ) ; $ options [ 'encoding' ] = post ( 'format_encoding' ) ; } return $ options ; }
Returns the file format options from postback. This method
can be used to define presets.
@return array
Returns the file format options from postback . This method can be used to define presets .