ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilXMLResultSetRow Class Reference
+ Collaboration diagram for ilXMLResultSetRow:

Public Member Functions

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

Private Attributes

 $columns = array()

Detailed Description

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

Member Function Documentation

ilXMLResultSetRow::getColumns ( )

get column array

Returns
array

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

References $columns.

{
}
ilXMLResultSetRow::getValue (   $idx)

return value for column with specified index

Parameters
int$idx
Returns
string

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

{
if ($idx < 0 || $idx >= count($this->columns))
throw new Exception ("Index too small or too large");
return $this->columns[$idx];
}
ilXMLResultSetRow::setValue (   $index,
  $value 
)

set column value

Parameters
mixed$index
String$value

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

Referenced by setValues().

{
$this->columns[$index] = $value;
}

+ Here is the caller graph for this function:

ilXMLResultSetRow::setValues (   $values)

add values from array

Parameters
array$values

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

References setValue().

{
$i = 0;
foreach ($values as $value) {
$this->setValue($i++, $value);
}
}

+ Here is the call graph for this function:

Field Documentation

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: