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++;
 
  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));
 
  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;
 
& _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)
setQuestionId($a_questionid)
Set Question Id.
getQuestionType()
Get Question Type.
getPoolObjId()
Get Pool Obj Id.
executeCommand()
execute command
getPoolRefId()
Get Pool Ref ID.
getQuestionId()
Get Question Id.
getDefaultNrOfTries()
Get Default Nr of Tries.
__construct()
Constructor.
getPageConfig()
Get 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.
getSelfAssessmentEditingMode()
Get Self-Assessment Editing Mode.
setSelfAssessmentEditingMode($a_selfassessmenteditingmode)
Set Self-Assessment Editing Mode.
setPageConfig($a_val)
Set Page Config.
setQuestionType($a_questiontype)
Set Question Type.
setDefaultNrOfTries($a_defaultnroftries)
Set Default Nr of Tries.
setPoolObjId($a_poolobjid)
Set Pool Obj Id.
setPoolRefId($a_poolrefid)
Set Pool Ref ID.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.