1 | <?php |
||
5 | class LoadDataInFile { |
||
6 | |||
7 | private $delimiter = ','; |
||
8 | private $enclosure = '"'; |
||
9 | private $eol = "\\n"; |
||
10 | private $escape = '\\'; |
||
11 | private $ignoreLines = 0; |
||
12 | private $csvFile; |
||
13 | private $tableName; |
||
14 | |||
15 | public function getDelimiter() { return $this->delimiter; } |
||
17 | |||
18 | public function getEnclosure() { return $this->enclosure; } |
||
20 | |||
21 | public function getEOL() { return $this->eol; } |
||
23 | |||
24 | public function getEscape() { return $this->escape; } |
||
26 | |||
27 | public function getTableName() { return $this->tableName; } |
||
29 | |||
30 | public function getIgnoreLines() { return $this->ignoreLines; } |
||
32 | |||
33 | public function getCsvFile() { return $this->csvFile; } |
||
38 | |||
39 | 1 | public function getQuery() { |
|
51 | |||
52 | 1 | private function escape($string) { |
|
55 | } |