ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilDclRatingRecordRepresentation.php
Go to the documentation of this file.
1
<?
php
2
require_once(
'./Modules/DataCollection/classes/Fields/Base/class.ilDclBaseRecordRepresentation.php'
);
3
require_once(
"./Services/Rating/classes/class.ilRatingGUI.php"
);
4
11
class
ilDclRatingRecordRepresentation
extends
ilDclBaseRecordRepresentation
{
12
18
public
function
getHTML
($link =
true
) {
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
}
29
30
34
public
function
fillFormInput
($form) {
35
// explicitly do nothing. the value is handled via the model and gui of ilRating.
36
}
37
}
ilDclBaseRecordRepresentation\getRecord
getRecord()
Getter shortcut for record.
Definition:
class.ilDclBaseRecordRepresentation.php:131
ilDclRatingRecordRepresentation\fillFormInput
fillFormInput($form)
Definition:
class.ilDclRatingRecordRepresentation.php:34
ilDclBaseRecordRepresentation\getField
getField()
Getter shortcut for field.
Definition:
class.ilDclBaseRecordRepresentation.php:123
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilRatingGUI
Class ilRatingGUI.
Definition:
class.ilRatingGUI.php:17
ilDclBaseRecordRepresentation
Class ilDclBaseRecordRepresentation.
Definition:
class.ilDclBaseRecordRepresentation.php:10
ilDclBaseRecordRepresentation\getRecordField
getRecordField()
Get Record Field.
Definition:
class.ilDclBaseRecordRepresentation.php:114
php
$DIC
global $DIC
Definition:
imagemanager.php:32
$html
$html
Definition:
example_001.php:87
ilDclRatingRecordRepresentation
Class ilDclMobRecordRepresentation.
Definition:
class.ilDclRatingRecordRepresentation.php:11
ilDclRatingRecordRepresentation\getHTML
getHTML($link=true)
Return rating html.
Definition:
class.ilDclRatingRecordRepresentation.php:18
Modules
DataCollection
classes
Fields
Rating
class.ilDclRatingRecordRepresentation.php
Generated on Fri Jan 17 2025 19:00:58 for ILIAS by
1.8.13 (using
Doxyfile
)