28 if (
$_GET[
"qpool_ref_id"]) {
30 } elseif (
$_GET[
"qpool_obj_id"]) {
35 $lng->loadLanguageModule(
"assessment");
37 $ilCtrl->saveParameter($this,
array(
"qpool_ref_id",
"qpool_obj_id",
"q_id",
"q_type"));
39 $this->new_id_listeners =
array();
40 $this->new_id_listener_cnt = 0;
50 $this->selfassessmenteditingmode = $a_selfassessmenteditingmode;
60 return $this->selfassessmenteditingmode;
70 $this->defaultnroftries = $a_defaultnroftries;
80 return $this->defaultnroftries;
90 $this->page_config = $a_val;
100 return $this->page_config;
110 $cnt = $this->new_id_listener_cnt;
111 $this->new_id_listeners[$cnt][
"object"] =&$a_object;
112 $this->new_id_listeners[$cnt][
"method"] = $a_method;
113 $this->new_id_listeners[$cnt][
"parameters"] = $a_parameters;
114 $this->new_id_listener_cnt++;
124 $cmd = $ilCtrl->getCmd();
125 $next_class = $ilCtrl->getNextClass();
129 switch ($next_class) {
131 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
136 $q_gui->object->setSelfAssessmentEditingMode(
139 $q_gui->object->setDefaultNrOfTries(
143 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++) {
149 $object =&$this->new_id_listeners[
$i][
"object"];
150 $method = $this->new_id_listeners[
$i][
"method"];
151 $parameters = $this->new_id_listeners[
$i][
"parameters"];
152 $q_gui->addNewIdListener(
163 $count = $q_gui->object->isInUse();
166 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;
setDefaultNrOfTries($a_defaultnroftries)
Set Default Nr of Tries.
getQuestionId()
Get Question Id.
setPoolRefId($a_poolrefid)
Set Pool Ref ID.
setQuestionType($a_questiontype)
Set Question Type.
getQuestionType()
Get Question Type.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
getPoolObjId()
Get Pool Obj Id.
executeCommand()
execute command
setQuestionId($a_questionid)
Set Question Id.
getSelfAssessmentEditingMode()
Get Self-Assessment Editing Mode.
static _getQuestionGUI($question_type, $question_id=-1)
Creates a question gui representation and returns the alias to the question gui note: please do not u...
static _lookupObjId($a_id)
getPoolRefId()
Get Pool Ref ID.
__construct()
Constructor.
setPoolObjId($a_poolobjid)
Set Pool Obj Id.
setSelfAssessmentEditingMode($a_selfassessmenteditingmode)
Set Self-Assessment Editing Mode.
Create styles array
The data for the language used.
getDefaultNrOfTries()
Get Default Nr of Tries.
setPageConfig($a_val)
Set Page Config.
addNewIdListener(&$a_object, $a_method, $a_parameters="")
Add a listener that is notified with the new question ID, when a new question is saved.
getPageConfig()
Get Page Config.