|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilXMLResultSet:Public Member Functions | |
| getColumnName (int $index) | |
| addColumn (string $columnname) | |
| create a new column with columnname and attach it to column list More... | |
| getIndexForColumn (string $columnname) | |
| return index for column name More... | |
| hasColumn (string $columnname) | |
| has column name More... | |
| getColSpecs () | |
| return array of ilXMLResultSetColumn More... | |
| getRows () | |
| return array of ilXMLResultSetRow More... | |
| addRow (ilXMLResultSetRow $row) | |
| setArray (array $array) | |
| Clear table value and sets them based on array. More... | |
| addArray (array $array, bool $overwrite=false) | |
| Add table values. More... | |
| clear () | |
| getColumnCount () | |
| getRowCount () | |
| getRow ($idx) | |
| return row for index idx More... | |
| getValue (int $rowIdx, $colIdx) | |
| return column value at colidx and rowidx More... | |
Private Attributes | |
| array | $colspecs = [] |
| array | $rows = [] |
Definition at line 34 of file class.ilXMLResultSet.php.
| ilXMLResultSet::addArray | ( | array | $array, |
| bool | $overwrite = false |
||
| ) |
Add table values.
Exspects a 2-dimension array. Column indeces of second dimensions in first row are column names. e.g. array (array("first" => "val1_1", "second" => "val1_2), array ("first" => "val2_1", "second" => "val2_2")) results in Table first second val1_1 va11_2 val2_1 val2_2
| array | $array | 2 dimensional array |
| bool | $overwrite | if false, column names won't be changed, rows will be added,true: result set will be reset to null and data will be added. |
Definition at line 122 of file class.ilXMLResultSet.php.
References addColumn(), addRow(), and clear().
Referenced by setArray().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXMLResultSet::addColumn | ( | string | $columnname | ) |
create a new column with columnname and attach it to column list
Definition at line 50 of file class.ilXMLResultSet.php.
Referenced by addArray().
Here is the caller graph for this function:| ilXMLResultSet::addRow | ( | ilXMLResultSetRow | $row | ) |
Definition at line 96 of file class.ilXMLResultSet.php.
Referenced by addArray().
Here is the caller graph for this function:| ilXMLResultSet::clear | ( | ) |
Definition at line 142 of file class.ilXMLResultSet.php.
Referenced by addArray().
Here is the caller graph for this function:| ilXMLResultSet::getColSpecs | ( | ) |
return array of ilXMLResultSetColumn
Definition at line 82 of file class.ilXMLResultSet.php.
References $colspecs.
| ilXMLResultSet::getColumnCount | ( | ) |
Definition at line 148 of file class.ilXMLResultSet.php.
| ilXMLResultSet::getColumnName | ( | int | $index | ) |
Definition at line 39 of file class.ilXMLResultSet.php.
References $index, and ilXMLResultSetColumn\getName().
Here is the call graph for this function:| ilXMLResultSet::getIndexForColumn | ( | string | $columnname | ) |
return index for column name
Definition at line 58 of file class.ilXMLResultSet.php.
Referenced by getValue(), and hasColumn().
Here is the caller graph for this function:| ilXMLResultSet::getRow | ( | $idx | ) |
return row for index idx
Definition at line 161 of file class.ilXMLResultSet.php.
References getRowCount().
Referenced by getValue().
Here is the call graph for this function:
Here is the caller graph for this function:| ilXMLResultSet::getRowCount | ( | ) |
Definition at line 153 of file class.ilXMLResultSet.php.
Referenced by getRow().
Here is the caller graph for this function:| ilXMLResultSet::getRows | ( | ) |
return array of ilXMLResultSetRow
Definition at line 91 of file class.ilXMLResultSet.php.
References $rows.
| ilXMLResultSet::getValue | ( | int | $rowIdx, |
| $colIdx | |||
| ) |
return column value at colidx and rowidx
| int | $rowIdx | |
| int | string | $colIdx |
Definition at line 175 of file class.ilXMLResultSet.php.
References getIndexForColumn(), and getRow().
Here is the call graph for this function:| ilXMLResultSet::hasColumn | ( | string | $columnname | ) |
has column name
Definition at line 73 of file class.ilXMLResultSet.php.
References getIndexForColumn().
Here is the call graph for this function:| ilXMLResultSet::setArray | ( | array | $array | ) |
Clear table value and sets them based on array.
Exspects a 2-dimension array. Column indeces of second dimensions in first row are column names. e.g. array (array("first" => "val1_1", "second" => "val1_2), array ("first" => "val2_1", "second" => "val2_2")) results in Table first second val1_1 va11_2 val2_1 val2_2
Definition at line 108 of file class.ilXMLResultSet.php.
References addArray().
Here is the call graph for this function:
|
private |
Definition at line 36 of file class.ilXMLResultSet.php.
Referenced by getColSpecs().
|
private |
Definition at line 37 of file class.ilXMLResultSet.php.
Referenced by getRows().