19 declare(strict_types=1);
30 $input->setDisabled(
true);
31 $input->setValue(
'-');
32 $input->setInfo($this->
getField()->getDescription() .
'<br>' . $this->
lng->txt(
'dcl_formula_detail_desc'));
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'),
53 static fn(
Operators $operator):
string => $operator->value,
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 class represents an option in a radio group.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const PROP_FORMULA_EXPRESSION
static http()
Fetches the global http state from ILIAS.
static getTableCache(?int $table_id=null)
getField()
Return BaseFieldModel.
This class represents a text area property in a property form.