ILIAS  release_8 Revision v8.23
class.ilDclRatingRecordRepresentation.php
Go to the documentation of this file.
1 <?php
2 
20 {
21  public function getHTML(bool $link = true, array $options = []): string
22  {
23  $rgui = new ilRatingGUI();
24  $rgui->setObject(
25  $this->getRecordField()->getRecord()->getId(),
26  "dcl_record",
27  $this->getRecordField()->getField()->getId(),
28  "dcl_field"
29  );
30 
31  $this->ctrl->setParameterByClass(ilRatingGUI::class, "field_id", $this->getRecordField()->getField()->getId());
32  $this->ctrl->setParameterByClass(ilRatingGUI::class, "record_id", $this->getRecordField()->getRecord()->getId());
33  if (isset($options['tableview_id'])) {
34  $this->ctrl->setParameterByClass(ilObjDataCollectionGUI::class, 'tableview_id', $options['tableview_id']);
35  }
36  return $rgui->getHTML();
37 
38  }
39 
43  public function fillFormInput(ilPropertyFormGUI $form): void
44  {
45  // explicitly do nothing. the value is handled via the model and gui of ilRating.
46  }
47 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...