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;
92 $this->page_config = $a_val;
102 return $this->page_config;
112 $cnt = $this->new_id_listener_cnt;
113 $this->new_id_listeners[$cnt][
"object"] =& $a_object;
114 $this->new_id_listeners[$cnt][
"method"] = $a_method;
115 $this->new_id_listeners[$cnt][
"parameters"] = $a_parameters;
116 $this->new_id_listener_cnt++;
126 $cmd = $ilCtrl->getCmd();
127 $next_class = $ilCtrl->getNextClass();
134 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
137 $q_gui->object->setSelfAssessmentEditingMode(
139 $q_gui->object->setDefaultNrOfTries(
142 if (is_object($this->page_config))
144 $q_gui->object->setPreventRteUsage($this->
getPageConfig()->getPreventRteUsage());
148 for ($i=0; $i<$this->new_id_listener_cnt; $i++)
150 $object =& $this->new_id_listeners[$i][
"object"];
151 $method = $this->new_id_listeners[$i][
"method"];
152 $parameters = $this->new_id_listeners[$i][
"parameters"];
153 $q_gui->addNewIdListener($object, $method,
161 $count = $q_gui->object->isInUse();
165 if ($rbacsystem->checkAccess(
"write", $this->pool_ref_id))
170 $ilCtrl->setCmdClass(get_class($q_gui));
171 $ret = $ilCtrl->forwardCommand($q_gui);
185 $this->questionid = $a_questionid;
186 $_GET[
"q_id"] = $this->questionid;
196 return $this->questionid;
207 $this->poolrefid = $a_poolrefid;
208 $_GET[
"qpool_ref_id"] = $this->poolrefid;
219 return $this->poolrefid;
230 $this->poolobjid = $a_poolobjid;
231 $_GET[
"qpool_obj_id"] = $this->poolobjid;
241 return $this->poolobjid;
251 $this->questiontype = $a_questiontype;
252 $_GET[
"q_type"] = $this->questiontype;
262 return $this->questiontype;