You are here

public function ParserCSV::__construct in Feeds 7.2

Same name and namespace in other branches
  1. 6 libraries/ParserCSV.inc \ParserCSV::__construct()
  2. 7 libraries/ParserCSV.inc \ParserCSV::__construct()

File

libraries/ParserCSV.inc, line 118
Contains CSV Parser.

Class

ParserCSV
Functionality to parse CSV files into a two dimensional array.

Code

public function __construct() {
  $this->delimiter = ',';
  $this->fromEncoding = 'UTF-8';
  $this->toEncoding = 'UTF-8';
  $this->skipFirstLine = FALSE;
  $this->columnNames = FALSE;
  $this->timeout = FALSE;
  $this->timeoutReached = FALSE;
  $this->startByte = 0;
  $this->lineLimit = 0;
  $this->lastLinePos = 0;
  ini_set('auto_detect_line_endings', TRUE);
  if (extension_loaded('mbstring') && variable_get('feeds_use_mbstring', TRUE)) {
    $this->useMbString = TRUE;
  }
}