ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilDataCollectionFormulaField Class Reference

Class ilDataCollectionField. More...

+ Inheritance diagram for ilDataCollectionFormulaField:
+ Collaboration diagram for ilDataCollectionFormulaField:

Public Member Functions

 __construct (ilDataCollectionRecord $record, ilDataCollectionField $field)
 setValue ($value)
 doUpdate ()
 Do nothing, value is runtime only and not stored in DB.
 doRead ()
 Do nothing, value is runtime only and not stored in DB.
 delete ()
 Do nothing, value is runtime only and not stored in DB.
 getFormInput ()
 getHTML ()
 getExportValue ()
 getValue ()
- Public Member Functions inherited from ilDataCollectionRecordField
 setValue ($value, $omit_parsing=false)
 Set value for record field.
 getPlainText ()
 getHTML ($link=true)
 getSortingValue ($link=true)
 getSingleHTML ()
 getField ()
 getId ()
 getRecord ()

Protected Member Functions

 loadValue ()
 Do nothing, value is runtime only and not stored in DB.
 parse ()
 Parse expression.
- Protected Member Functions inherited from ilDataCollectionRecordField
 doCreate ()
 Create object in database.

Protected Attributes

 $expression = ''
 $field_properties = array()
 $parsed_value = ''
- Protected Attributes inherited from ilDataCollectionRecordField
 $id
 $field
 $record
 $value
 $lng
 $user
 $ctrl
 $db

Detailed Description

Constructor & Destructor Documentation

ilDataCollectionFormulaField::__construct ( ilDataCollectionRecord  $record,
ilDataCollectionField  $field 
)
Parameters
ilDataCollectionRecord$record
ilDataCollectionField$field

Reimplemented from ilDataCollectionRecordField.

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

References ilDataCollectionField\getProperties(), and ilDataCollectionField\PROPERTYID_FORMULA_EXPRESSION.

{
parent::__construct($record, $field);
$this->field_properties = $field->getProperties();
$this->expression = $this->field_properties[ilDataCollectionField::PROPERTYID_FORMULA_EXPRESSION];
}

+ Here is the call graph for this function:

Member Function Documentation

ilDataCollectionFormulaField::delete ( )

Do nothing, value is runtime only and not stored in DB.

Reimplemented from ilDataCollectionRecordField.

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

{
return NULL;
}
ilDataCollectionFormulaField::doRead ( )

Do nothing, value is runtime only and not stored in DB.

Reimplemented from ilDataCollectionRecordField.

Definition at line 72 of file class.ilDataCollectionFormulaField.php.

{
return NULL;
}
ilDataCollectionFormulaField::doUpdate ( )

Do nothing, value is runtime only and not stored in DB.

Reimplemented from ilDataCollectionRecordField.

Definition at line 64 of file class.ilDataCollectionFormulaField.php.

{
return NULL;
}
ilDataCollectionFormulaField::getExportValue ( )
Returns
string

Reimplemented from ilDataCollectionRecordField.

Definition at line 105 of file class.ilDataCollectionFormulaField.php.

References parse().

{
return $this->parse();
}

+ Here is the call graph for this function:

ilDataCollectionFormulaField::getFormInput ( )
Returns
mixed|string

Reimplemented from ilDataCollectionRecordField.

Definition at line 89 of file class.ilDataCollectionFormulaField.php.

References parse().

{
return $this->parse();
}

+ Here is the call graph for this function:

ilDataCollectionFormulaField::getHTML ( )
Returns
string

Definition at line 97 of file class.ilDataCollectionFormulaField.php.

References parse().

{
return $this->parse();
}

+ Here is the call graph for this function:

ilDataCollectionFormulaField::getValue ( )
Returns
string

Reimplemented from ilDataCollectionRecordField.

Definition at line 113 of file class.ilDataCollectionFormulaField.php.

References parse().

{
return $this->parse();
}

+ Here is the call graph for this function:

ilDataCollectionFormulaField::loadValue ( )
protected

Do nothing, value is runtime only and not stored in DB.

Reimplemented from ilDataCollectionRecordField.

Definition at line 48 of file class.ilDataCollectionFormulaField.php.

{
return NULL;
}
ilDataCollectionFormulaField::parse ( )
protected

Parse expression.

Returns
string

Definition at line 123 of file class.ilDataCollectionFormulaField.php.

References $parsed_value.

Referenced by getExportValue(), getFormInput(), getHTML(), and getValue().

{
if (!$this->parsed_value AND $this->expression) {
$parser = new ilDclExpressionParser($this->expression, $this->record, $this->field);
try {
$this->parsed_value = $parser->parse();
} catch (ilException $e) {
return $this->lng->txt('dcl_error_parsing_expression') . ' (' . $e->getMessage() . ')';
}
}
}

+ Here is the caller graph for this function:

ilDataCollectionFormulaField::setValue (   $value)
Parameters
$value

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

References ilDataCollectionRecordField\$value.

{
unset($value);
}

Field Documentation

ilDataCollectionFormulaField::$expression = ''
protected

Definition at line 23 of file class.ilDataCollectionFormulaField.php.

ilDataCollectionFormulaField::$field_properties = array()
protected

Definition at line 27 of file class.ilDataCollectionFormulaField.php.

ilDataCollectionFormulaField::$parsed_value = ''
protected

Definition at line 31 of file class.ilDataCollectionFormulaField.php.

Referenced by parse().


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