/** * determines the delimiter character in the CSV file * * @param string $csv_file the CSV file to scan for a delimiter * @return string the delimiter */ protected function _detect_delimiter($csv_file) { $post_delimiter = filter_input(INPUT_POST, 'delimiter_character', FILTER_SANITIZE_STRING); if (empty($post_delimiter) && $post_delimiter !== 'auto') { return $post_delimiter; } else { return parent::_detect_delimiter($csv_file); } }
function __construct($file_field_name) { $this->i10n_context = Participants_Db::PLUGIN_NAME; $this->_set_column_array(); parent::__construct($file_field_name); }