28 $this->dcl_obj_id = $dclTable->getCollectionObject()->getId();
76 return round($val[
"avg"], 1) .
" (" . $val[
"cnt"] .
")";
95 public function delete():
void 101 "DELETE FROM il_rating WHERE " .
102 "obj_id = " .
$ilDB->quote($this->getRecord()->getId(),
"integer") .
" AND " .
103 "obj_type = " .
$ilDB->quote(
"dcl_record",
"text") .
" AND " .
104 "sub_obj_id = " .
$ilDB->quote((
int) $this->
getField()->
getId(),
"integer") .
" AND " .
105 $ilDB->equals(
"sub_obj_type",
"dcl_field",
"text",
true)
108 $query2 =
"DELETE FROM il_dcl_record_field WHERE id = " .
$ilDB->quote($this->
getId(),
"integer");
109 $ilDB->manipulate($query2);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilDclBaseFieldModel $field
__construct(Container $dic, ilPlugin $plugin)
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...