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++;
 
  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));
 
  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;
 
& _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.