ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilDclRatingRecordRepresentation Class Reference
+ Inheritance diagram for ilDclRatingRecordRepresentation:
+ Collaboration diagram for ilDclRatingRecordRepresentation:

Public Member Functions

 getHTML (bool $link=true, array $options=[])
 
 fillFormInput (ilPropertyFormGUI $form)
 
- Public Member Functions inherited from ilDclBaseRecordRepresentation
 __construct (ilDclBaseRecordFieldModel $record_field)
 
 getFormGUI (ilPropertyFormGUI $formGUI)
 
 parseFormInput ($value)
 function parses stored value to the variable needed to fill into the form for editing. More...
 
 fillFormInput (ilPropertyFormGUI $form)
 Fills the form with the value of a record. More...
 
 getHTML (bool $link=true, array $options=[])
 Outputs html of a certain field. More...
 
 getSingleHTML (?array $options=null, bool $link=true)
 Returns data for single record view. More...
 
 getConfirmationHTML ()
 Returns data for confirmation list When returning false, attribute is ignored in list. More...
 
 fillRow (ilTemplate $tpl)
 Fills row with record data. More...
 
 getRecordField ()
 Get Record Field. More...
 
 getField ()
 Getter shortcut for field. More...
 
 getRecord ()
 Getter shortcut for record. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ilDclBaseRecordRepresentation
 getFormInput ()
 Gets the value from from the record field. More...
 
- Protected Attributes inherited from ilDclBaseRecordRepresentation
ILIAS UI Factory $factory
 
ilDclBaseRecordFieldModel $record_field
 
ilLanguage $lng
 
ilAccess $access
 
ilCtrl $ctrl
 
ILIAS HTTP Services $http
 
ILIAS Refinery Factory $refinery
 
ILIAS UI Renderer $renderer
 
ilObjUser $user
 

Detailed Description

Definition at line 21 of file class.ilDclRatingRecordRepresentation.php.

Member Function Documentation

◆ fillFormInput()

ilDclRatingRecordRepresentation::fillFormInput ( ilPropertyFormGUI  $form)

Definition at line 43 of file class.ilDclRatingRecordRepresentation.php.

43  : void
44  {
45  // explicitly do nothing. the value is handled via the model and gui of ilRating.
46  }

◆ getHTML()

ilDclRatingRecordRepresentation::getHTML ( bool  $link = true,
array  $options = [] 
)

Definition at line 23 of file class.ilDclRatingRecordRepresentation.php.

References ILIAS\Repository\ctrl(), ilDclBaseRecordRepresentation\getField(), ILIAS\Survey\Mode\getId(), ilDclBaseRecordRepresentation\getRecord(), and ilDclBaseRecordRepresentation\getRecordField().

23  : 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  if (isset($options['tableview_id'])) {
35  $this->ctrl->setParameterByClass(ilObjDataCollectionGUI::class, 'tableview_id', $options['tableview_id']);
36  }
37  return $rgui->getHTML();
38  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: