39 bool $a_prevent_get_id =
false,
44 $this->
lng = $DIC->language();
45 $this->
user = $DIC->user();
46 $this->db =
$DIC->database();
48 $this->component_repository =
$DIC[
'component.repository'];
50 $this->log =
$DIC[
"ilLog"];
52 $this->pres_request =
$DIC
69 if (strtolower($this->
ctrl->getCmdClass()) ==
"ilassquestionfeedbackeditinggui") {
71 $this->tpl->setOnScreenMessage(
'info',
$lng->
txt(
"cont_def_feedb_deactivated"));
73 $this->tpl->setOnScreenMessage(
'info',
$lng->
txt(
"cont_def_feedb_activated"));
89 parent::processAnswer();
96 $this->pres_request->getQuestionPageId(),
108 $qlist->setParentObjId(0);
109 $qlist->setJoinObjectData(
false);
110 $qlist->addFieldFilter(
"question_id", array(
$id));
112 $qdata = $qlist->getQuestionDataArray();
114 if ($as[
"try"] >= $qdata[$as[
"qst_id"]][
"nr_of_tries"] && $qdata[$as[
"qst_id"]][
"nr_of_tries"] > 0 && !$as[
"passed"]) {
117 if (count($users) > 0) {
120 $not->setQuestionId(
$id);
121 $not->setRefId($this->pres_request->getRefId());
122 $not->setRecipients($users);
132 if ($lm_tree->isInTree($this->getPageObject()->getId())) {
134 $this->
ctrl->setParameterByClass(
135 ilStructureObjectGUI::class,
139 $this->
ctrl->redirectByClass([
140 ilObjLearningModuleGUI::class,
141 ilStructureObjectGUI::class
144 $this->
ctrl->redirectByClass(
145 ilObjLearningModuleGUI::class,
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Extension of ilPageObjectGUI for learning modules.
PresentationGUIRequest $pres_request
onFeedbackEditingForwarding()
On feedback editing forwarding.
processAnswer()
Process answer.
__construct(int $a_id=0, int $a_old_nr=0, bool $a_prevent_get_id=false, string $a_lang="", string $concrete_lang="")
ilComponentRepository $component_repository
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
static getNotificationsForObject(int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false)
Get all users/recipients for given object.
const TYPE_LM_BLOCKED_USERS
static _lookupStoreTries(int $a_id)
static _lookupDisableDefaultFeedback(int $a_id)
static _lookupRestrictForwardNavigation(int $a_obj_id)
static lookupParentId(int $a_id, string $a_type)
static getAnswerStatus( $a_q_id, int $a_user_id=0)
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
Readable part of repository interface to ilComponentDataDB.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc