ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
ilXMLResultSet () | |
getColumnName ($index) | |
addColumn ($columnname) | |
create a new column with columnname and attach it to column list | |
getIndexForColumn ($columnname) | |
return index for column name | |
hasColumn ($columnname) | |
has column name | |
getColSpecs () | |
return array of ilXMLResultSetColumn | |
getRows () | |
return array of ilXMLResultSetRow | |
addRow (&$row) | |
add row object | |
setArray ($array) | |
Clear table value and sets them based on array. | |
addArray ($array, $overwrite=false) | |
Add table values. | |
clear () | |
Clear resultset (colspecs and row values) | |
getColumnCount () | |
return column count | |
getRowCount () | |
return row count | |
getRow ($idx) | |
return row for index idx | |
getValue ($rowIdx, $colIdx) | |
return column value at colidx and rowidx |
Private Attributes | |
$colspecs = array() | |
$rows = array() |
Definition at line 37 of file class.ilXMLResultSet.php.
ilXMLResultSet::addArray | ( | $array, | |
$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 |
boolean | $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 149 of file class.ilXMLResultSet.php.
References $row, addColumn(), addRow(), and clear().
Referenced by setArray().
ilXMLResultSet::addColumn | ( | $columnname | ) |
create a new column with columnname and attach it to column list
String | $columname |
Definition at line 60 of file class.ilXMLResultSet.php.
Referenced by addArray().
ilXMLResultSet::addRow | ( | & | $row | ) |
add row object
ilXMLResultSetRow | $row |
Definition at line 117 of file class.ilXMLResultSet.php.
References $row.
Referenced by addArray().
ilXMLResultSet::clear | ( | ) |
Clear resultset (colspecs and row values)
Definition at line 174 of file class.ilXMLResultSet.php.
Referenced by addArray().
ilXMLResultSet::getColSpecs | ( | ) |
return array of ilXMLResultSetColumn
Definition at line 97 of file class.ilXMLResultSet.php.
References $colspecs.
ilXMLResultSet::getColumnCount | ( | ) |
return column count
Definition at line 184 of file class.ilXMLResultSet.php.
ilXMLResultSet::getColumnName | ( | $index | ) |
Definition at line 47 of file class.ilXMLResultSet.php.
References ilXMLResultSetColumn\getName().
ilXMLResultSet::getIndexForColumn | ( | $columnname | ) |
return index for column name
string | $columnname |
Definition at line 71 of file class.ilXMLResultSet.php.
Referenced by getValue(), and hasColumn().
ilXMLResultSet::getRow | ( | $idx | ) |
return row for index idx
$idx | index |
Definition at line 202 of file class.ilXMLResultSet.php.
References getRowCount().
Referenced by getValue().
ilXMLResultSet::getRowCount | ( | ) |
return row count
Definition at line 193 of file class.ilXMLResultSet.php.
Referenced by getRow().
ilXMLResultSet::getRows | ( | ) |
return array of ilXMLResultSetRow
Definition at line 107 of file class.ilXMLResultSet.php.
References $rows.
ilXMLResultSet::getValue | ( | $rowIdx, | |
$colIdx | |||
) |
return column value at colidx and rowidx
int | $rowIdx | |
mixed | $colIdx |
Definition at line 215 of file class.ilXMLResultSet.php.
References $row, getIndexForColumn(), and getRow().
ilXMLResultSet::hasColumn | ( | $columnname | ) |
has column name
string | $columnname |
Definition at line 88 of file class.ilXMLResultSet.php.
References getIndexForColumn().
ilXMLResultSet::ilXMLResultSet | ( | ) |
Definition at line 43 of file class.ilXMLResultSet.php.
ilXMLResultSet::setArray | ( | $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
array | $array | 2 dimensional array |
Definition at line 133 of file class.ilXMLResultSet.php.
References addArray().
|
private |
Definition at line 39 of file class.ilXMLResultSet.php.
Referenced by getColSpecs().
|
private |
Definition at line 40 of file class.ilXMLResultSet.php.
Referenced by getRows().