ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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...
getHTML(bool $link=true, array $options=[])