27 if (
$_GET[
"qpool_ref_id"])
31 else if (
$_GET[
"qpool_obj_id"])
37 $lng->loadLanguageModule(
"assessment");
39 $ilCtrl->saveParameter($this, array(
"qpool_ref_id",
"qpool_obj_id",
"q_id",
"q_type"));
41 $this->new_id_listeners = array();
42 $this->new_id_listener_cnt = 0;
52 $this->selfassessmenteditingmode = $a_selfassessmenteditingmode;
62 return $this->selfassessmenteditingmode;
72 $this->defaultnroftries = $a_defaultnroftries;
82 return $this->defaultnroftries;
91 $cnt = $this->new_id_listener_cnt;
92 $this->new_id_listeners[$cnt][
"object"] =& $a_object;
93 $this->new_id_listeners[$cnt][
"method"] = $a_method;
94 $this->new_id_listeners[$cnt][
"parameters"] = $a_parameters;
95 $this->new_id_listener_cnt++;
105 $cmd = $ilCtrl->getCmd();
106 $next_class = $ilCtrl->getNextClass();
113 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
116 $q_gui->setSelfAssessmentEditingMode(
118 $q_gui->setDefaultNrOfTries(
122 for ($i=0; $i<$this->new_id_listener_cnt; $i++)
124 $object =& $this->new_id_listeners[$i][
"object"];
125 $method = $this->new_id_listeners[$i][
"method"];
126 $parameters = $this->new_id_listeners[$i][
"parameters"];
127 $q_gui->addNewIdListener($object,
$method,
135 $count = $q_gui->object->isInUse();
139 if ($rbacsystem->checkAccess(
"write", $this->pool_ref_id))
144 $ilCtrl->setCmdClass(get_class($q_gui));
145 $ret = $ilCtrl->forwardCommand($q_gui);
159 $this->questionid = $a_questionid;
160 $_GET[
"q_id"] = $this->questionid;
170 return $this->questionid;
181 $this->poolrefid = $a_poolrefid;
182 $_GET[
"qpool_ref_id"] = $this->poolrefid;
193 return $this->poolrefid;
204 $this->poolobjid = $a_poolobjid;
205 $_GET[
"qpool_obj_id"] = $this->poolobjid;
215 return $this->poolobjid;
225 $this->questiontype = $a_questiontype;
226 $_GET[
"q_type"] = $this->questiontype;
236 return $this->questiontype;