36 private readonly
Group $group,
40 $this->ui_factory = $DIC->ui()->factory();
47 $ff = $this->ui_factory->input()->field();
51 ->text($this->translator->translate(
'title',
'entry'))
54 $this->
refinery->custom()->transformation(
function (
string $value):
string {
55 $this->entry = $this->entry->withTitle($value);
63 $this->translator->translate(
'active',
'entry'),
64 $this->translator->translate(
'active_info',
'entry')
68 $this->
refinery->custom()->transformation(
function (
bool $value):
bool {
69 $this->entry = $this->entry->withActive($value);
75 $this->translator->translate(
'action',
'entry'),
76 $this->translator->translate(
'action_info',
'entry')
79 ->withValue($this->entry->getAction())
81 $this->
refinery->custom()->transformation(
function (
string $value):
string {
82 $this->entry = $this->entry->withAction($value);
87 ->checkbox($this->translator->translate(
'external',
'entry'))
90 $this->
refinery->custom()->transformation(
function (
bool $value):
bool {
91 $this->entry = $this->entry->withExternal($value);
98 $ff->section(
$inputs, $this->translator->translate($this->entry->getId() ===
'' ?
'add' :
'edit',
'entry'))
104 return $this->
form ?? $this->ui_factory
109 ->withAdditionalTransformation(
110 $this->
refinery->custom()->transformation(fn(array $value): ?
Entry => $this->entry)
116 $this->
form = $this->
get($target)->withRequest($request);
119 $this->entry = $this->entry->withParent($this->group->getId());
repository()
description: > Example for rendering a repository card
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This is how the factory for UI elements looks.
form( $class_path, string $cmd, string $submit_caption="")