ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 56 of file class.ilXMLResultSetRow.php.

References $columns.

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

◆ getValue()

ilXMLResultSetRow::getValue (   $idx)

return value for column with specified index

Parameters
int$idx
Returns
string

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

References columns.

80  {
81  if ($idx < 0 || $idx >= count($this->columns))
82  throw new Exception ("Index too small or too large");
83  return $this->columns[$idx];
84  }
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 45 of file class.ilXMLResultSetRow.php.

References columns.

Referenced by setValues().

46  {
47  $this->columns[$index] = $value;
48  }
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 66 of file class.ilXMLResultSetRow.php.

References setValue().

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

Field Documentation

◆ $columns

ilXMLResultSetRow::$columns = array()
private

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

Referenced by getColumns().


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