ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilXMLResultSetRow Class Reference
+ Collaboration diagram for ilXMLResultSetRow:

Public Member Functions

 setValue ($index, $value)
 set column value More...
 
 getColumns ()
 get column array More...
 
 setValues ($values)
 add values from array More...
 
 getValue ($idx)
 return value for column with specified index More...
 

Private Attributes

 $columns = array()
 

Detailed Description

Definition at line 36 of file class.ilXMLResultSetRow.php.

Member Function Documentation

◆ getColumns()

ilXMLResultSetRow::getColumns ( )

get column array

Returns
array

Definition at line 57 of file class.ilXMLResultSetRow.php.

References $columns.

58  {
59  return $this->columns;
60  }

◆ getValue()

ilXMLResultSetRow::getValue (   $idx)

return value for column with specified index

Parameters
int$idx
Returns
string

Definition at line 81 of file class.ilXMLResultSetRow.php.

References columns.

82  {
83  if ($idx < 0 || $idx >= count($this->columns)) {
84  throw new Exception("Index too small or too large");
85  }
86  return $this->columns[$idx];
87  }
Play around with inserting and removing rows and columns

◆ setValue()

ilXMLResultSetRow::setValue (   $index,
  $value 
)

set column value

Parameters
mixed$index
String$value

Definition at line 46 of file class.ilXMLResultSetRow.php.

References $index, and columns.

Referenced by setValues().

47  {
48  $this->columns[$index] = $value;
49  }
$index
Definition: metadata.php:60
Play around with inserting and removing rows and columns
+ Here is the caller graph for this function:

◆ setValues()

ilXMLResultSetRow::setValues (   $values)

add values from array

Parameters
array$values

Definition at line 67 of file class.ilXMLResultSetRow.php.

References $i, and setValue().

68  {
69  $i = 0;
70  foreach ($values as $value) {
71  $this->setValue($i++, $value);
72  }
73  }
$i
Definition: disco.tpl.php:19
setValue($index, $value)
set column value
+ Here is the call graph for this function:

Field Documentation

◆ $columns

ilXMLResultSetRow::$columns = array()
private

Definition at line 38 of file class.ilXMLResultSetRow.php.

Referenced by getColumns().


The documentation for this class was generated from the following file: