Exemplo n.º 1
0
 public function __construct($id_service, $filename = false)
 {
     $this->name = 'CSV';
     $this->extension = 'csv';
     parent::__construct($id_service, $filename);
     self::$_delimiter = trim(self::$_serviceData['delimiter']) == '' ? Configuration::get('EXPORTFREE_DELIMITER') : self::$_serviceData['delimiter'];
     self::$_enclosure = trim(self::$_serviceData['enclosure']) == '' ? Configuration::get('EXPORTFREE_ENCLOSURE') : self::$_serviceData['enclosure'];
     self::$_delimiter = ExportTools::delimiterByKeyWord(self::$_delimiter);
     self::$_enclosure = ExportTools::getEnclosureFromId(self::$_enclosure);
 }
Exemplo n.º 2
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->type = 'html';
     $this->template = 'exports.templates.bootstrap';
 }
Exemplo n.º 3
0
 public function __construct($title, $fileName = 'export', $params = array(), $charset = 'UTF-8')
 {
     $this->delimiter = isset($params['delimiter']) ? $params['delimiter'] : $this->delimiter;
     $this->withBOM = isset($params['withBOM']) ? $params['withBOM'] : $this->withBOM;
     parent::__construct($title, $fileName, $params, $charset);
 }
Exemplo n.º 4
0
 public function __construct($tilte, $fileName = 'export', $params = array(), $charset = 'UTF-8')
 {
     $this->objPHPExcel = new \PHPExcel();
     parent::__construct($tilte, $fileName, $params, $charset);
 }
Exemplo n.º 5
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->type = 'csv';
 }