protected function FeedsCSVParser::getDelimiterChar in Feeds 7.2
Gets the appropriate delimiter character for the delimiter in the config.
Parameters
array $config: The configuration for the parser.
Return value
string The delimiter character.
2 calls to FeedsCSVParser::getDelimiterChar()
- FeedsCSVParser::getTemplate in plugins/
FeedsCSVParser.inc - FeedsCSVParser::parse in plugins/
FeedsCSVParser.inc - Implements FeedsParser::parse().
File
- plugins/
FeedsCSVParser.inc, line 365 - Contains the FeedsCSVParser class.
Class
- FeedsCSVParser
- Parses a given file as a CSV file.
Code
protected function getDelimiterChar(array $config) {
$config_delimiter = $config['delimiter'];
switch ($config_delimiter) {
case 'TAB':
$delimiter = "\t";
break;
default:
$delimiter = $config_delimiter;
break;
}
return $delimiter;
}