예제 #1
0
 /**
  * {@ihneritdoc}
  */
 protected function __construct($path, $open_mode = 'r+')
 {
     parent::__construct($path, $open_mode);
     self::initFputcsv();
 }
예제 #2
0
 /**
  *
  * Default Excel Writing configuration
  *
  * available options :
  * - delimiter : (default = ';')
  * - enclosure : (default = '"')
  * - encoding : (default = 'CP1252')
  * - eol : (default = "\r\n")
  * - escape : (default = "\\")
  * - first_row_header : (default = false) use the PHP keys as CSV headers and write the first row with them
  * - bom : (default = false)  add UTF8 BOM marker
  * - translit : (default = 'translit')  iconv translit option possible values : 'translit', 'ignore', null
  * - trim : (default = false) trim each values on each line
  *
  * N.B. : Be careful, the option '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_WRITING;
     $this->fileHandlerMode = 'wb';
 }