19 declare(strict_types=1);
36 $this->
lng = $DIC->language();
41 return (
int) $this->field->getId();
46 if (isset(self::$field_cache[$placeholder])) {
47 $field = self::$field_cache[$placeholder];
52 return $this->record->getRecordFieldFormulaValue($field->getId());
58 foreach ($tokens as
$token) {
59 if ($token instanceof
Token) {
60 $token = $token->getValue();
65 $replaced[] =
new Token($token);
75 $field_title = preg_replace(
'#^\[\[(.*)\]\]#',
"$1", $placeholder);
76 $field = $table->getFieldByTitle($field_title);
77 if ($field ===
null) {
79 $field = $table->getField($field_title);
80 if ($field ===
null) {
81 throw new \ilException(sprintf($this->
lng->txt(
'dcl_err_formula_field_not_found'), $field_title));
84 self::$field_cache[$placeholder] = $field;
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getTableCache(?int $table_id=null)