You are here

protected function FeedsCSVParser::getAllDelimiterTypes in Feeds 7.2

Gets an associative array of the delimiters supported by this parser.

The keys represent the value that is persisted into the database, and the value represents the text that is shown in the admins UI.

Return value

array The associative array of delimiter types to display name.

2 calls to FeedsCSVParser::getAllDelimiterTypes()
FeedsCSVParser::configForm in plugins/FeedsCSVParser.inc
Build configuration form.
FeedsCSVParser::sourceForm in plugins/FeedsCSVParser.inc
Source form.

File

plugins/FeedsCSVParser.inc, line 344
Contains the FeedsCSVParser class.

Class

FeedsCSVParser
Parses a given file as a CSV file.

Code

protected function getAllDelimiterTypes() {
  $delimiters = array(
    ',',
    ';',
    'TAB',
    '|',
    '+',
  );
  return array_combine($delimiters, $delimiters);
}