ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilDclFormulaFieldRepresentation Class Reference

Class ilDclDateTimeREpresentation. More...

+ Inheritance diagram for ilDclFormulaFieldRepresentation:
+ Collaboration diagram for ilDclFormulaFieldRepresentation:

Public Member Functions

 getInputField (ilPropertyFormGUI $form, $record_id=0)
 
- Public Member Functions inherited from ilDclBaseFieldRepresentation
 __construct (ilDclBaseFieldModel $field)
 
 addFilterInputFieldToTable (ilTable2GUI $table)
 Add filter input to TableGUI. More...
 
 passThroughFilter (ilDclBaseRecordModel $record, $filter)
 Checks if a filter affects a record. More...
 
 parseSortingValue ($value, $link=true)
 
 getInputField (ilPropertyFormGUI $form, $record_id=0)
 Returns field-input. More...
 
 addFieldCreationForm ($form, ilObjDataCollection $dcl, $mode="create")
 Adds the options for the field-types to the field-creation form. More...
 
 getPropertyInputFieldId ($property)
 Return post-var for property-fields. More...
 
 getField ()
 Return BaseFieldModel. More...
 

Protected Member Functions

 buildFieldCreationInput (ilObjDataCollection $dcl, $mode='create')
 
- Protected Member Functions inherited from ilDclBaseFieldRepresentation
 setupFilterInputField (ilFormPropertyGUI $input)
 Set basic settings for filter-input-gui. More...
 
 setupInputField (ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
 Sets basic settings on field-input. More...
 
 getFilterInputFieldValue ( $input)
 
 buildFieldCreationInput (ilObjDataCollection $dcl, $mode='create')
 Build the creation-input-field. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilDclBaseFieldRepresentation
 $field
 
 $lng
 
 $ctrl
 

Detailed Description

Class ilDclDateTimeREpresentation.

Author
Michael Herren mh@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0.0

Definition at line 9 of file class.ilDclFormulaFieldRepresentation.php.

Member Function Documentation

◆ buildFieldCreationInput()

ilDclFormulaFieldRepresentation::buildFieldCreationInput ( ilObjDataCollection  $dcl,
  $mode = 'create' 
)
protected

Definition at line 25 of file class.ilDclFormulaFieldRepresentation.php.

References $_GET, $f, $table, ilDclExpressionParser\getFunctions(), ilDclExpressionParser\getOperators(), ilDclCache\getTableCache(), and ilDclBaseFieldModel\PROP_FORMULA_EXPRESSION.

26  {
27  $opt = parent::buildFieldCreationInput($dcl, $mode);
28 
29  $table = ilDclCache::getTableCache((int) $_GET['table_id']);
30  $fields = array();
31  foreach ($table->getFieldsForFormula() as $f) {
32  $placeholder = ($f->isStandardField()) ? $f->getId() : $f->getTitle();
33  $fields[] = '<a class="dclPropExpressionField" data-placeholder="' . $placeholder . '">' . $f->getTitle() . '</a>';
34  }
35  $subitem = new ilTextAreaInputGUI($this->lng->txt('dcl_prop_expression'), 'prop_' . ilDclBaseFieldModel::PROP_FORMULA_EXPRESSION);
36  $operators = implode(', ', array_keys(ilDclExpressionParser::getOperators()));
38  $subitem->setInfo(sprintf($this->lng->txt('dcl_prop_expression_info'), $operators, $functions, implode('<br>', $fields)));
39  $opt->addSubItem($subitem);
40 
41  return $opt;
42  }
$_GET["client_id"]
static getTableCache($table_id=0)
This class represents a text area property in a property form.
if(empty($password)) $table
Definition: pwgen.php:24
+ Here is the call graph for this function:

◆ getInputField()

ilDclFormulaFieldRepresentation::getInputField ( ilPropertyFormGUI  $form,
  $record_id = 0 
)

Definition at line 11 of file class.ilDclFormulaFieldRepresentation.php.

References $input, and ilDclBaseFieldRepresentation\getField().

12  {
13  $input = new ilTextInputGUI($this->getField()->getTitle(), 'field_' . $this->getField()->getId());
14  $input->setDisabled(true);
15  $input->setValue('-');
16  $input->setInfo($this->getField()->getDescription() . '<br>' . $this->lng->txt('dcl_formula_detail_desc'));
17 
18  return $input;
19  }
This class represents a text property in a property form.
+ Here is the call graph for this function:

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