ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDclRatingRecordRepresentation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function getHTML(bool $link = true, array $options = []): string
24 {
25 $rgui = new ilRatingGUI();
26 $rgui->setObject(
27 $this->getRecordField()->getRecord()->getId(),
28 "dcl_record",
29 (int) $this->getRecordField()->getField()->getId(),
30 "dcl_field"
31 );
32 $this->ctrl->setParameterByClass(ilRatingGUI::class, "field_id", $this->getRecordField()->getField()->getId());
33 $this->ctrl->setParameterByClass(ilRatingGUI::class, "record_id", $this->getRecordField()->getRecord()->getId());
34 $this->ctrl->setParameterByClass(ilRatingGUI::class, "detail_view", $this->ctrl->getCmd() === 'renderRecord' ? '1' : '0');
35 if (isset($options['tableview_id'])) {
36 $this->ctrl->setParameterByClass(ilObjDataCollectionGUI::class, 'tableview_id', $options['tableview_id']);
37 }
38 return $rgui->getHTML();
39 }
40
44 public function fillFormInput(ilPropertyFormGUI $form): void
45 {
46 // explicitly do nothing. the value is handled via the model and gui of ilRating.
47 }
48}
fillFormInput(ilPropertyFormGUI $form)
@inheritDoc
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.
This class represents a property form user interface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...