ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDclCopyRecordRepresentation.php
Go to the documentation of this file.
1<?php
2
20{
21 public function parseFormInput($value)
22 {
23 if ($this->getField()->getProperty(ilDclBaseFieldModel::PROP_N_REFERENCE)) {
24 $value = [$value];
25 }
26
27 return parent::parseFormInput($value);
28 }
29
30 public function getHTML(bool $link = true, array $options = []): string
31 {
32 $return = parent::getHTML();
33 if ($this->getField()->getProperty(ilDclBaseFieldModel::PROP_N_REFERENCE)) {
34 $return = str_replace('; ', '<br>', $return);
35 }
36 return $return;
37 }
38}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.