30 if (
$_GET[
"qpool_ref_id"]) {
32 } elseif (
$_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++;
129 $next_class =
$ilCtrl->getNextClass();
133 switch ($next_class) {
135 include_once
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php";
140 $q_gui->object->setSelfAssessmentEditingMode(
143 $q_gui->object->setDefaultNrOfTries(
147 if (is_object($this->page_config)) {
148 $q_gui->object->setPreventRteUsage($this->
getPageConfig()->getPreventRteUsage());
152 for (
$i = 0;
$i < $this->new_id_listener_cnt;
$i++) {
153 $object = &$this->new_id_listeners[
$i][
"object"];
154 $method = $this->new_id_listeners[
$i][
"method"];
155 $parameters = $this->new_id_listeners[
$i][
"parameters"];
156 $q_gui->addNewIdListener(
167 $count = $q_gui->object->isInUse();
170 $rbacsystem = $DIC[
'rbacsystem'];
171 if ($rbacsystem->checkAccess(
"write", $this->pool_ref_id)) {
175 $ilCtrl->setCmdClass(get_class($q_gui));
190 $this->questionid = $a_questionid;
191 $_GET[
"q_id"] = $this->questionid;
201 return $this->questionid;
212 $this->poolrefid = $a_poolrefid;
213 $_GET[
"qpool_ref_id"] = $this->poolrefid;
224 return $this->poolrefid;
235 $this->poolobjid = $a_poolobjid;
236 $_GET[
"qpool_obj_id"] = $this->poolobjid;
246 return $this->poolobjid;
256 $this->questiontype = $a_questiontype;
257 $_GET[
"q_type"] = $this->questiontype;
267 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.
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.