34 include_once
'./webservice/soap/classes/class.ilXMLResultSetColumn.php';
35 include_once
'./webservice/soap/classes/class.ilXMLResultSetRow.php';
43 if (is_numeric($index) && ($index < 0 || $index > count($this->colspecs)))
57 $this->colspecs [count($this->colspecs)] =
new ilXMLResultSetColumn (count($this->colspecs), $columnname);
68 foreach ($this->colspecs as $colspec) {
69 if (strcasecmp($columnname, $colspec->getName()) == 0)
148 foreach ($array as
$row) {
152 $columnNames = array_keys($row);
153 foreach ($columnNames as $columnName)
160 $xmlRow->setValues ($row);
171 $this->colspecs =
array();
180 return count($this->colspecs);
189 return count($this->
rows);
199 throw new Exception (
"Index too small or too big!");
200 return $this->
rows[$idx];
213 if (!is_numeric($colIdx))
216 return $row->getValue ($colIdx);
addRow(&$row)
add row object
setArray($array)
Clear table value and sets them based on array.
getValue($rowIdx, $colIdx)
return column value at colidx and rowidx
clear()
Clear resultset (colspecs and row values)
getColumnCount()
return column count
getColSpecs()
return array of ilXMLResultSetColumn
addArray($array, $overwrite=false)
Add table values.
getRow($idx)
return row for index idx
hasColumn($columnname)
has column name
Create styles array
The data for the language used.
getRowCount()
return row count
addColumn($columnname)
create a new column with columnname and attach it to column list
getIndexForColumn($columnname)
return index for column name
getRows()
return array of ilXMLResultSetRow