|
const | NEWLINE = "\r\n" |
|
const | BUFLINES = 100 |
|
const | DEFAULT_SEPARATOR = ';' |
|
const | DEFAULT_QUOTE = '"' |
|
const | FILE_NOT_WRITABLE = -1 |
|
const | DB_ERROR = -2 |
|
|
string | $separator |
|
string | $quote |
|
string | $escaped |
|
mixed | $file |
|
string | $result |
|
int | $current_line |
|
array | $extensions = array('csv') |
|
array | $accepted_separators |
|
array | $accepted_quotes |
|
CSV files
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\IO\Csv::__construct |
( |
string |
$default_dir | ) |
|
Default constructor
- Parameters
-
string | $default_dir | Default directory |
◆ addError()
Galette\IO\Csv::addError |
( |
string |
$msg | ) |
|
Add an error
- Parameters
-
- Returns
- void
◆ getAcceptedQuotes()
Galette\IO\Csv::getAcceptedQuotes |
( |
| ) |
|
Accepted quotes
- Returns
- array<string> list of accepted quotes
◆ getAcceptedSeparators()
Galette\IO\Csv::getAcceptedSeparators |
( |
| ) |
|
Accepted separators
- Returns
- array<string> list of accepted separators
◆ getErrors()
Galette\IO\Csv::getErrors |
( |
| ) |
|
Get errors
- Returns
- array<string>
◆ getExisting()
Galette\IO\Csv::getExisting |
( |
| ) |
|
Retrieve a list of already existing CSV files
- Returns
- array<int, array<string,string>>
◆ remove()
Galette\IO\Csv::remove |
( |
string |
$name | ) |
|
Remove existing CSV file
- Parameters
-
- Returns
- boolean
◆ $accepted_quotes
array Galette\IO\Csv::$accepted_quotes |
|
protected |
◆ $accepted_separators
array Galette\IO\Csv::$accepted_separators |
|
protected |
Initial value:= array(
',',
';',
'\t'
)
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/IO/Csv.php