19 declare(strict_types=1);
39 private string $title =
'',
40 private string $long_description =
'',
47 if ($this->object_type_specific_property_modifications !==
null) {
48 return $this->object_type_specific_property_modifications->modifyTitle($this->title);
57 $clone->title = $title;
69 $clone->long_description = $description;
75 if ($this->object_type_specific_property_modifications !==
null) {
76 return $this->object_type_specific_property_modifications->modifyDescription($this->long_description);
78 return $this->long_description;
86 $trafo = $refinery->custom()->transformation(
88 list($title, $long_description) = $vs;
96 $title_input = $field_factory->text($language->
txt(self::TITLE_LABEL))
100 ->withValue($this->title);
101 $description_input = $field_factory->textarea($language->
txt(self::DESCRIPTION_LABEL))
104 ->withValue($this->long_description);
105 return $field_factory->group([$title_input, $description_input], self::GROUP_LABEL)
106 ->withAdditionalTransformation($trafo);
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(private string $title='', private string $long_description='', private ?ObjectTypeSpecificPropertyModifications $object_type_specific_property_modifications=null)
withDescription(string $description)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
toForm(\ilLanguage $language, FieldFactory $field_factory, Refinery $refinery)