ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Public Member Functions | |
__construct ($file_url=NULL) | |
getCell ($row_num, $col_num, $val_only=true) | |
Get value of the specified cell. More... | |
getColumn ($col_num, $val_only=TRUE) | |
Get data of the specified column as an array. More... | |
getField ($val_only=TRUE) | |
Get data of all cells as an array. More... | |
getRow ($row_num, $val_only=TRUE) | |
Get data of the specified row as an array. More... | |
isCellExists ($row_num, $col_num) | |
Check whether cell with specified row & column exists. More... | |
isColumnExists ($col_num) | |
Check whether a specified column exists. More... | |
isRowExists ($row_num) | |
Check whether a specified row exists. More... | |
isFieldExists () | |
Check whether table exists. More... | |
isFileReady ($file_path) | |
Check whether file exists, valid, and readable. More... | |
![]() | |
loadFile ($file_path) | |
loadString ($str) | |
Protected Attributes | |
$table_arr | |
$file_extension = '' | |
Definition at line 13 of file BaseParser.php.
SimpleExcel\Parser\BaseParser::__construct | ( | $file_url = NULL | ) |
string | $file_url | Path to file (optional) |
Definition at line 34 of file BaseParser.php.
References SimpleExcel\Parser\IParser\loadFile().
SimpleExcel\Parser\BaseParser::getCell | ( | $row_num, | |
$col_num, | |||
$val_only = true |
|||
) |
Get value of the specified cell.
int | $row_num | Row number |
int | $col_num | Column number |
int | $val_only |
Exception | If the cell identified doesn't exist. |
Implements SimpleExcel\Parser\IParser.
Definition at line 49 of file BaseParser.php.
References SimpleExcel\Exception\SimpleExcelException\CELL_NOT_FOUND, and SimpleExcel\Parser\BaseParser\isCellExists().
SimpleExcel\Parser\BaseParser::getColumn | ( | $col_num, | |
$val_only = TRUE |
|||
) |
Get data of the specified column as an array.
int | $col_num | Column number |
bool | $val_only |
Exception | If the column requested doesn't exist. |
Implements SimpleExcel\Parser\IParser.
Definition at line 65 of file BaseParser.php.
References $row, SimpleExcel\Exception\SimpleExcelException\COLUMN_NOT_FOUND, and SimpleExcel\Parser\BaseParser\isColumnExists().
SimpleExcel\Parser\BaseParser::getField | ( | $val_only = TRUE | ) |
Get data of all cells as an array.
bool | $val_only |
Exception | If the field is not set. |
Implements SimpleExcel\Parser\IParser.
Definition at line 88 of file BaseParser.php.
References SimpleExcel\Parser\BaseParser\$table_arr, SimpleExcel\Exception\SimpleExcelException\FIELD_NOT_FOUND, and SimpleExcel\Parser\BaseParser\isFieldExists().
SimpleExcel\Parser\BaseParser::getRow | ( | $row_num, | |
$val_only = TRUE |
|||
) |
Get data of the specified row as an array.
int | $row_num | Row number |
bool | $val_only |
Exception | When a row is requested that doesn't exist. |
Implements SimpleExcel\Parser\IParser.
Definition at line 105 of file BaseParser.php.
References SimpleExcel\Parser\BaseParser\isRowExists(), and SimpleExcel\Exception\SimpleExcelException\ROW_NOT_FOUND.
SimpleExcel\Parser\BaseParser::isCellExists | ( | $row_num, | |
$col_num | |||
) |
Check whether cell with specified row & column exists.
int | $row_num | Row number |
int | $col_num | Column number |
Implements SimpleExcel\Parser\IParser.
Definition at line 121 of file BaseParser.php.
References SimpleExcel\Parser\BaseParser\isColumnExists(), and SimpleExcel\Parser\BaseParser\isRowExists().
Referenced by SimpleExcel\Parser\BaseParser\getCell(), and SimpleExcel\Parser\XMLParser\getCell().
SimpleExcel\Parser\BaseParser::isColumnExists | ( | $col_num | ) |
Check whether a specified column exists.
int | $col_num | Column number |
Implements SimpleExcel\Parser\IParser.
Definition at line 131 of file BaseParser.php.
References $row.
Referenced by SimpleExcel\Parser\BaseParser\getColumn(), and SimpleExcel\Parser\BaseParser\isCellExists().
SimpleExcel\Parser\BaseParser::isFieldExists | ( | ) |
Check whether table exists.
Implements SimpleExcel\Parser\IParser.
Definition at line 156 of file BaseParser.php.
Referenced by SimpleExcel\Parser\BaseParser\getField(), and SimpleExcel\Parser\XMLParser\getField().
SimpleExcel\Parser\BaseParser::isFileReady | ( | $file_path | ) |
Check whether file exists, valid, and readable.
string | $file_path | Path to file |
Exception | If file being loaded doesn't exist |
Exception | If file extension doesn't match |
Exception | If error reading the file |
Implements SimpleExcel\Parser\IParser.
Definition at line 169 of file BaseParser.php.
References SimpleExcel\Parser\BaseParser\$file_extension, SimpleExcel\Exception\SimpleExcelException\ERROR_READING_FILE, SimpleExcel\Exception\SimpleExcelException\FILE_EXTENSION_MISMATCH, and SimpleExcel\Exception\SimpleExcelException\FILE_NOT_FOUND.
Referenced by SimpleExcel\Parser\JSONParser\loadFile(), SimpleExcel\Parser\CSVParser\loadFile(), SimpleExcel\Parser\HTMLParser\loadFile(), and SimpleExcel\Parser\XMLParser\loadFile().
SimpleExcel\Parser\BaseParser::isRowExists | ( | $row_num | ) |
Check whether a specified row exists.
int | $row_num | Row number |
Implements SimpleExcel\Parser\IParser.
Definition at line 147 of file BaseParser.php.
Referenced by SimpleExcel\Parser\BaseParser\getRow(), and SimpleExcel\Parser\BaseParser\isCellExists().
|
protected |
Definition at line 29 of file BaseParser.php.
Referenced by SimpleExcel\Parser\BaseParser\isFileReady().
|
protected |
Definition at line 21 of file BaseParser.php.
Referenced by SimpleExcel\Parser\BaseParser\getField(), and SimpleExcel\Parser\XMLParser\getField().