ILIAS  release_8 Revision v8.24
class.ilIndividualAssessmentInfoSettings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22use ILIAS\Refinery\Factory as Refinery;
23
25{
26 protected int $obj_id;
27 protected ?string $contact;
28 protected ?string $responsibility;
29 protected ?string $phone;
30 protected ?string $mails;
31 protected ?string $consultation_hours;
32
33 public function __construct(
34 int $obj_id,
35 ?string $contact = null,
36 ?string $responsibility = null,
37 ?string $phone = null,
38 ?string $mails = null,
39 ?string $consultation_hours = null
40 ) {
41 $this->obj_id = $obj_id;
42 $this->contact = $contact;
43 $this->responsibility = $responsibility;
44 $this->phone = $phone;
45 $this->mails = $mails;
46 $this->consultation_hours = $consultation_hours;
47 }
48
49 public function getObjId(): int
50 {
51 return $this->obj_id;
52 }
53
54 public function getContact(): ?string
55 {
56 return $this->contact;
57 }
58
59 public function getResponsibility(): ?string
60 {
62 }
63
64 public function getPhone(): ?string
65 {
66 return $this->phone;
67 }
68
69 public function getMails(): ?string
70 {
71 return $this->mails;
72 }
73
74 public function getConsultationHours(): ?string
75 {
77 }
78
79 public function toFormInput(
80 Field\Factory $input,
82 Refinery $refinery
83 ): \ILIAS\UI\Component\Input\Container\Form\FormInput {
84 return $input->section(
85 [
86 $input->text($lng->txt("iass_contact"))
87 ->withValue((string) $this->getContact())
88 ->withRequired(true),
89 $input->text($lng->txt("iass_responsibility"))
90 ->withValue((string) $this->getResponsibility()),
91 $input->text($lng->txt("iass_phone"))
92 ->withValue((string) $this->getPhone()),
93 $input->textarea($lng->txt("iass_mails"), $lng->txt("iass_info_emails_expl"))
94 ->withValue((string) $this->getMails()),
95 $input->textarea($lng->txt("iass_consultation_hours"))
96 ->withValue((string) $this->getConsultationHours())
97 ],
98 $lng->txt("settings")
100 $refinery->custom()->transformation(function ($value) {
102 $this->getObjId(),
103 ...$value
104 );
105 })
106 );
107 }
108}
static return function(ContainerConfigurator $containerConfigurator)
Definition: basic_rector.php:9
Builds data types.
Definition: Factory.php:21
return true
__construct(int $obj_id, ?string $contact=null, ?string $responsibility=null, ?string $phone=null, ?string $mails=null, ?string $consultation_hours=null)
toFormInput(Field\Factory $input, ilLanguage $lng, Refinery $refinery)
language handling
return['3gp', '7z', 'ai', 'aif', 'aifc', 'aiff', 'au', 'arw', 'avi', 'backup', 'bak', 'bas', 'bpmn', 'bpmn2', 'bmp', 'bib', 'bibtex', 'bz', 'bz2', 'c', 'c++', 'cc', 'cct', 'cdf', 'cer', 'class', 'cls', 'conf', 'cpp', 'crt', 'crs', 'crw', 'cr2', 'css', 'cst', 'csv', 'cur', 'db', 'dcr', 'des', 'dng', 'doc', 'docx', 'dot', 'dotx', 'dtd', 'dvi', 'el', 'eps', 'epub', 'f', 'f77', 'f90', 'flv', 'for', 'g3', 'gif', 'gl', 'gan', 'ggb', 'gsd', 'gsm', 'gtar', 'gz', 'gzip', 'h', 'hpp', 'htm', 'html', 'htmls', 'ibooks', 'ico', 'ics', 'ini', 'ipynb', 'java', 'jbf', 'jpeg', 'jpg', 'js', 'jsf', 'jso', 'json', 'latex', 'lang', 'less', 'log', 'lsp', 'ltx', 'm1v', 'm2a', 'm2v', 'm3u', 'm4a', 'm4v', 'markdown', 'm', 'mat', 'md', 'mdl', 'mdown', 'mid', 'min', 'midi', 'mobi', 'mod', 'mov', 'movie', 'mp2', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'mph', 'mpga', 'mpp', 'mpt', 'mpv', 'mpx', 'mv', 'mw', 'mv4', 'nb', 'nbp', 'nef', 'nif', 'niff', 'obj', 'obm', 'odt', 'ods', 'odp', 'odg', 'odf', 'oga', 'ogg', 'ogv', 'old', 'p', 'pas', 'pbm', 'pcl', 'pct', 'pcx', 'pdf', 'pgm', 'pic', 'pict', 'png', 'por', 'pov', 'project', 'properties', 'ppa', 'ppm', 'pps', 'ppsx', 'ppt', 'pptx', 'ppz', 'ps', 'psd', 'pwz', 'qt', 'qtc', 'qti', 'qtif', 'r', 'ra', 'ram', 'rar', 'rast', 'rda', 'rev', 'rexx', 'ris', 'rf', 'rgb', 'rm', 'rmd', 'rmi', 'rmm', 'rmp', 'rt', 'rtf', 'rtx', 'rv', 's', 's3m', 'sav', 'sbs', 'sec', 'sdml', 'sgm', 'sgml', 'smi', 'smil', 'srt', 'sps', 'spv', 'stl', 'svg', 'swa', 'swf', 'swz', 'tar', 'tex', 'texi', 'texinfo', 'text', 'tgz', 'tif', 'tiff', 'ttf', 'txt', 'tmp', 'uvproj', 'vdf', 'vimeo', 'viv', 'vivo', 'vrml', 'vsdx', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']
This describes inputs that can be used in forms.
Definition: FormInput.php:32
This is what a factory for input fields looks like.
Definition: Factory.php:29
This is a legacy support of Component\Input\Field\Input that has been moved to Component\Input\Contai...
Definition: Input.php:32
Refinery Factory $refinery
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Checkbox.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withAdditionalTransformation(Transformation $trafo)
@inheritDoc
withValue($value)
Get an input like this with another value displayed on the client side.
Definition: Group.php:59
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.
$lng