19 declare(strict_types=1);
36 private string $title =
'',
37 private string $long_description =
'',
44 if ($this->object_type_specific_property_modifications !==
null) {
45 return $this->object_type_specific_property_modifications->modifyTitle($this->title);
54 $clone->title = $title;
66 $clone->long_description = $description;
72 if ($this->object_type_specific_property_modifications !==
null) {
73 return $this->object_type_specific_property_modifications->modifyDescription($this->long_description);
75 return $this->long_description;
83 $trafo = $refinery->custom()->transformation(
85 list($title, $long_description) = $vs;
93 $title_input = $field_factory->text($language->
txt(self::TITLE_LABEL))
97 ->withValue($this->title);
98 $description_input = $field_factory->textarea($language->
txt(self::DESCRIPTION_LABEL))
101 ->withValue($this->long_description);
102 return $field_factory->group([$title_input, $description_input], self::GROUP_LABEL)
103 ->withAdditionalTransformation($trafo);
__construct(private string $title='', private string $long_description='', private ?ilObjectTypeSpecificPropertyModifications $object_type_specific_property_modifications=null)
toForm(\ilLanguage $language, FieldFactory $field_factory, Refinery $refinery)
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
withDescription(string $description)