ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilDclRatingRecordRepresentation Class Reference

Class ilDclMobRecordRepresentation. More...

+ Inheritance diagram for ilDclRatingRecordRepresentation:
+ Collaboration diagram for ilDclRatingRecordRepresentation:

Public Member Functions

 getHTML ($link=true)
 Return rating html. More...
 
 fillFormInput ($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 ($form)
 Fills the form with the value of a record. More...
 
 getHTML ($link=true)
 Outputs html of a certain field. More...
 
 getSingleHTML (array $options=null, $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
 $record_field
 
 $lng
 
 $access
 
 $ctrl
 

Detailed Description

Member Function Documentation

◆ fillFormInput()

ilDclRatingRecordRepresentation::fillFormInput (   $form)

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

34  {
35  // explicitly do nothing. the value is handled via the model and gui of ilRating.
36  }

◆ getHTML()

ilDclRatingRecordRepresentation::getHTML (   $link = true)

Return rating html.

Returns
string

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

References $DIC, $html, $ilCtrl, ilDclBaseRecordRepresentation\getField(), ilDclBaseRecordRepresentation\getRecord(), and ilDclBaseRecordRepresentation\getRecordField().

18  {
19  global $DIC;
20  $ilCtrl = $DIC['ilCtrl'];
21  $rgui = new ilRatingGUI();
22  $rgui->setObject($this->getRecordField()->getRecord()->getId(), "dcl_record", $this->getRecordField()->getField()->getId(), "dcl_field");
23  $ilCtrl->setParameterByClass("ilratinggui", "field_id", $this->getRecordField()->getField()->getId());
24  $ilCtrl->setParameterByClass("ilratinggui", "record_id", $this->getRecordField()->getRecord()->getId());
25  $html = $rgui->getHTML();
26 
27  return $html;
28  }
global $ilCtrl
Definition: ilias.php:18
Class ilRatingGUI.
global $DIC
$html
Definition: example_001.php:87
+ Here is the call graph for this function:

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