29 protected \ILIAS\HTTP\Services
$http;
42 $this->tpl = $DIC->ui()->mainTemplate();
43 $this->request = $DIC->exercise()->internal()->gui()->request();
44 $this->
http = $DIC->http();
62 $ilCtrl->getLinkTargetByClass(
"ilExPeerReviewGUI",
"updateCritAjax",
"",
true,
false) .
65 $field_id =
"prccc_rating_" . $this->
getId();
71 $this->
form->addItem($input);
75 $input->setSkipRequiredCheck(
true);
78 $this->form_item = $input;
84 ?
"peer_" . $this->
getId()
97 $rating->setUserId($this->giver_id);
99 $ajax_id = $this->
getId()
103 $html =
'<div class="crit_widget" data-crit-id="' . $ajax_id .
'">' .
104 $rating->getHTML(
false,
true,
"il.ExcPeerReview.saveCrit(this, " . $this->peer_id .
", '" . $ajax_id .
"', %rating%)") .
107 $html = $rating->getHTML(
false,
false);
126 $this->request->getRatingValue()
140 $this->
form->getItemByPostVar(
"prccc_rating_" . $this->
getId())->setAlert(
$lng->
txt(
"msg_input_is_required"));
ILIAS HTTP Services $http
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importFromPeerReviewForm()
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
ilGlobalTemplateInterface $tpl
__construct()
Constructor.
static resetRatingForUserAndObject(int $a_obj_id, string $a_obj_type, int $a_sub_obj_id, string $a_sub_obj_type, int $a_user_id)
Reset rating for a user and an object.
static writeRatingForUserAndObject(int $a_obj_id, string $a_obj_type, ?int $a_sub_obj_id, ?string $a_sub_obj_type, int $a_user_id, int $a_rating, int $a_category_id=0)
Write rating for a user and an object.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
addToPeerReviewForm($a_value=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilExcCriteriaRating.
renderWidget(bool $a_read_only=false)
form( $class_path, string $cmd, string $submit_caption="")
__construct(Container $dic, ilPlugin $plugin)
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
static getRatingForUserAndObject(int $a_obj_id, string $a_obj_type, int $a_sub_obj_id, string $a_sub_obj_type, int $a_user_id, ?int $a_category_id=null)
Get rating for a user and an object.
ilCustomInputGUI $form_item
Exercise gui request wrapper.