19 declare(strict_types=1);
    30         $this->dcl_obj_id = $dclTable->getCollectionObject()->getId();
    78         return round($val[
"avg"], 1) . 
" (" . $val[
"cnt"] . 
")";
    97     public function delete(): 
void   100         $ilDB = $DIC[
'ilDB'];
   103             "DELETE FROM il_rating WHERE " .
   104             "obj_id = " . 
$ilDB->quote($this->getRecord()->getId(), 
"integer") . 
" AND " .
   105             "obj_type = " . 
$ilDB->quote(
"dcl_record", 
"text") . 
" AND " .
   106             "sub_obj_id = " . 
$ilDB->quote((
int) $this->
getField()->
getId(), 
"integer") . 
" AND " .
   107             $ilDB->equals(
"sub_obj_type", 
"dcl_field", 
"text", 
true)
   110         $query2 = 
"DELETE FROM il_dcl_record_field WHERE id = " . 
$ilDB->quote($this->
getId(), 
"integer");
   111         $ilDB->manipulate($query2);
 
getExportValue()
return Export values 
 
setValue($value, bool $omit_parsing=false)
Set value for record field. 
 
__construct(ilDclBaseRecordModel $record, ilDclBaseFieldModel $field)
 
static getTableCache(int $table_id=null)
 
ilDclBaseFieldModel $field
 
addHiddenItemsToConfirmation(ilConfirmationGUI $confirmation)
 
loadValue()
override the loadValue. 
 
ilDclBaseRecordModel $record
 
static getOverallRatingForObject(int $a_obj_id, string $a_obj_type, int $a_sub_obj_id=null, string $a_sub_obj_type=null, int $a_category_id=null)
Get overall rating for an object.