28 if (
$_GET[
"qpool_ref_id"])
32 else if (
$_GET[
"qpool_obj_id"])
38 $lng->loadLanguageModule(
"assessment");
40 $ilCtrl->saveParameter($this,
array(
"qpool_ref_id",
"qpool_obj_id",
"q_id",
"q_type"));
42 $this->new_id_listeners =
array();
43 $this->new_id_listener_cnt = 0;
53 $this->selfassessmenteditingmode = $a_selfassessmenteditingmode;
63 return $this->selfassessmenteditingmode;
73 $this->defaultnroftries = $a_defaultnroftries;
83 return $this->defaultnroftries;
93 $this->page_config = $a_val;
103 return $this->page_config;
113 $cnt = $this->new_id_listener_cnt;
114 $this->new_id_listeners[$cnt][
"object"] =& $a_object;
115 $this->new_id_listeners[$cnt][
"method"] = $a_method;
116 $this->new_id_listeners[$cnt][
"parameters"] = $a_parameters;
117 $this->new_id_listener_cnt++;
127 $cmd = $ilCtrl->getCmd();
128 $next_class = $ilCtrl->getNextClass();
135 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
138 $q_gui->object->setSelfAssessmentEditingMode(
140 $q_gui->object->setDefaultNrOfTries(
143 if (is_object($this->page_config))
145 $q_gui->object->setPreventRteUsage($this->
getPageConfig()->getPreventRteUsage());
149 for ($i=0; $i<$this->new_id_listener_cnt; $i++)
151 $object =& $this->new_id_listeners[$i][
"object"];
152 $method = $this->new_id_listeners[$i][
"method"];
153 $parameters = $this->new_id_listeners[$i][
"parameters"];
154 $q_gui->addNewIdListener($object, $method,
162 $count = $q_gui->object->isInUse();
166 if ($rbacsystem->checkAccess(
"write", $this->pool_ref_id))
171 $ilCtrl->setCmdClass(get_class($q_gui));
172 $ret = $ilCtrl->forwardCommand($q_gui);
186 $this->questionid = $a_questionid;
187 $_GET[
"q_id"] = $this->questionid;
197 return $this->questionid;
208 $this->poolrefid = $a_poolrefid;
209 $_GET[
"qpool_ref_id"] = $this->poolrefid;
220 return $this->poolrefid;
231 $this->poolobjid = $a_poolobjid;
232 $_GET[
"qpool_obj_id"] = $this->poolobjid;
242 return $this->poolobjid;
252 $this->questiontype = $a_questiontype;
253 $_GET[
"q_type"] = $this->questiontype;
263 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.