ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)
 @inheritDoc More...
 
- 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)

@inheritDoc

Reimplemented from ilDclBaseRecordRepresentation.

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

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

◆ getHTML()

ilDclRatingRecordRepresentation::getHTML (   $link = true)

Return rating html.

Returns
string

Reimplemented from ilDclBaseRecordRepresentation.

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

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 }
Class ilRatingGUI.
$html
Definition: example_001.php:87
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7

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

+ Here is the call graph for this function:

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