22use Psr\Http\Message\RequestInterface;
56 return $this->ui_factory->input()->container()->form()->standard($this->form_action,
$inputs);
61 $to_int_trafo = $this->
refinery->kindlyTo()->int();
62 $fix_points_trafo = $this->
refinery->custom()->transformation(
64 $v = str_replace(
',',
'.', $v);
75 $inputs[
'question_id'] = $this->ui_factory->input()->field()->hidden()
76 ->withAdditionalTransformation($to_int_trafo)
77 ->withValue((
string) (
$data[
'question_id'] ??
''));
78 $inputs[
'question_index'] = $this->ui_factory->input()->field()->hidden()
79 ->withAdditionalTransformation($to_int_trafo)
80 ->withValue((
string) (
$data[
'question_index'] ??
''));
81 $inputs[
'answer_value'] = $this->ui_factory->input()->field()->hidden($this->
language->txt(
'answer'))
83 $inputs[
'answer'] = $this->ui_factory->input()->field()->text($this->
language->txt(
'answer'))
86 $inputs[
'points'] = $this->ui_factory->input()->field()->text($this->
language->txt(
'points'))
Class ilCtrl provides processing control methods.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
This is how the factory for UI elements looks.
Refinery Factory $refinery