コード例 #1
0
ファイル: CsvReader.php プロジェクト: csanquer/colibri-csv
 /**
  *
  * Default Excel Reading configuration
  *
  * available options :
  * - delimiter : (default = ';')
  * - enclosure : (default = '"')
  * - encoding : (default = 'CP1252')
  * - eol : (default = "\r\n")
  * - escape : (default = "\\")
  * - first_row_header : (default = false) use the first CSV row as header
  * - bom : (default = false)  add UTF8 BOM marker
  * - translit : (default = 'translit')  iconv translit option possible values : 'translit', 'ignore', null
  * - force_encoding_detect : (default = false)
  * - skip_empty : (default = false)  remove lines with empty values
  * - trim : (default = false) trim each values on each line
  *
  * N.B. : Be careful, the options 'force_encoding_detect', 'skip_empty' and 'trim'
  * decrease significantly the performances
  *
  * @param array $options Dialect Options to describe CSV file parameters
  */
 public function __construct($options = [])
 {
     parent::__construct($options);
     $this->mode = self::MODE_READING;
     $this->fileHandlerMode = 'rb';
 }