CSV wrapper.
More...
CSV wrapper.
Definition at line 8 of file Csv.php.
◆ __construct()
__construct |
( |
|
$filename, |
|
|
|
$mode = 'r' , |
|
|
|
$delimiter = ',' , |
|
|
|
$enclosure = '"' , |
|
|
|
$escape = '\\' |
|
) |
| |
◆ __destruct()
◆ __call()
__call |
( |
|
$func_name, |
|
|
|
$params |
|
) |
| |
◆ close()
Close the file.
Definition at line 80 of file Csv.php.
◆ get()
Read a single record from the file.
- Parameters
-
string | $filler | Filler to use if record is shorter than keys (if any). |
- Returns
- array Record, ordered and with keys if any.
Definition at line 32 of file Csv.php.
◆ getAll()
Return all remaining records from the file.
- Parameters
-
string | $filler | Filler to use if record is shorter than keys (if any). |
- Returns
- array Array of records.
Definition at line 72 of file Csv.php.
◆ getKeys()
Read the keys from the file and store them.
- Returns
- array
Definition at line 54 of file Csv.php.
◆ put()
put |
( |
|
$fields, |
|
|
|
$filler = null |
|
) |
| |
Write a single record to the file.
- Parameters
-
array | $fields | Values. |
string | $filler | Filler to use if array of values does not contain all keys (if any). |
- Returns
- int Length of the written string or FALSE on failure.
Definition at line 42 of file Csv.php.
◆ putKeys()
Write the keys to the file and store them.
- Parameters
-
Definition at line 62 of file Csv.php.
◆ $_delimiter
◆ $_enclosure
◆ $_escape
◆ $_handle
◆ $keys
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/helpers/src/Rsi/Wrapper/Csv.php