◆ buildFieldCreationInput()
  
  
      
        
          | ilDclFormulaFieldRepresentation::buildFieldCreationInput  | 
          ( | 
          ilObjDataCollection  | 
          $dcl,  | 
         
        
           | 
           | 
          string  | 
          $mode = 'create'  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Definition at line 37 of file class.ilDclFormulaFieldRepresentation.php.
References Vendor\Package\$f, ilDclCache\getTableCache(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ilDclBaseFieldModel\PROP_FORMULA_EXPRESSION, and ILIAS\Repository\refinery().
   39         $opt = parent::buildFieldCreationInput($dcl, $mode);
    41         $table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
    44         foreach ($table->getFieldsForFormula() as 
$f) {
    45             $placeholder = (
$f->isStandardField()) ? 
$f->getId() : 
$f->getTitle();
    46             $fields[] = 
'<a class="dclPropExpressionField" data-placeholder="' . $placeholder . 
'">' . 
$f->getTitle() . 
'</a>';
    49             $this->
lng->txt(
'dcl_prop_expression'),
    52         $operators = implode(
', ', array_map(
    53             static fn(
Operators $operator): 
string => $operator->value,
    56         $functions = implode(
', ', array_map(
    57             static fn(
Functions $function): 
string => $function->value,
    60         $subitem->setInfo(sprintf(
    61             $this->
lng->txt(
'dcl_prop_expression_info'),
    64             implode(
'<br>', $fields)
    66         $opt->addSubItem($subitem);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
const PROP_FORMULA_EXPRESSION
 
static http()
Fetches the global http state from ILIAS. 
 
static getTableCache(int $table_id=null)
 
This class represents a text area property in a property form. 
 
 
 
 
◆ getInputField()
      
        
          | ilDclFormulaFieldRepresentation::getInputField  | 
          ( | 
          ilPropertyFormGUI  | 
          $form,  | 
        
        
           | 
           | 
          ?int  | 
          $record_id = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
The documentation for this class was generated from the following file: