Private Member Functions |
| | unquote ($a_str) |
| | private
|
Detailed Description
Constructor & Destructor Documentation
| ilCSVReader::__construct |
( |
| ) |
|
Member Function Documentation
Definition at line 99 of file class.ilCSVReader.php.
{
ini_set("auto_detect_line_endings", $this->line_ends);
return( @fclose($this->ptr_file) );
}
| ilCSVReader::getDataArrayFromCSVFile |
( |
| ) |
|
Get data as array from csv file.
public
- Returns
- array $this->data Data of file
Definition at line 114 of file class.ilCSVReader.php.
References $data, $row, and unquote().
{
while (($line = fgetcsv($this->ptr_file, $this->length, $this->separator)) !== FALSE)
{
for ($col = 0; $col < count($line); $col++)
{
}
}
}
| ilCSVReader::open |
( |
|
$file = "" | ) |
|
| ilCSVReader::setDelimiter |
( |
|
$a_del | ) |
|
Set delimiter.
public
- Parameters
-
Definition at line 73 of file class.ilCSVReader.php.
{
$this->delimiter = $a_del;
}
| ilCSVReader::setLength |
( |
|
$a_length | ) |
|
| ilCSVReader::setSeparator |
( |
|
$a_sep | ) |
|
| ilCSVReader::unquote |
( |
|
$a_str | ) |
|
|
private |
Field Documentation
| ilCSVReader::$data = array() |
|
private |
| ilCSVReader::$delimiter = '""' |
|
private |
| ilCSVReader::$length = 1024 |
|
private |
| ilCSVReader::$ptr_file = null |
|
private |
| ilCSVReader::$separator = ';' |
|
private |
The documentation for this class was generated from the following file: