/**
  * assJavaAppletGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the assJavaAppletGUI object.
  *
  * @param integer $id The database id of a image map question object
  * 
  * @return \assJavaAppletGUI
  */
 function __construct($id = -1)
 {
     parent::__construct();
     include_once './Modules/TestQuestionPool/classes/class.assJavaApplet.php';
     $this->object = new assJavaApplet();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
Example #2
0
 /**
  * assNumericGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the assNumericGUI object.
  *
  * @param integer $id The database id of a Numeric question object
  *
  * @return assNumericGUI
  */
 public function __construct($id = -1)
 {
     parent::__construct();
     require_once './Modules/TestQuestionPool/classes/class.assNumeric.php';
     $this->object = new assNumeric();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
 /**
  * assOrderingQuestionGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the assOrderingQuestionGUI object.
  *
  * @param integer $id The database id of a ordering question object
  * @access public
  */
 function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Modules/TestQuestionPool/classes/class.assOrderingQuestion.php";
     $this->object = new assOrderingQuestion();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
 /**
  * assFormulaQuestionGUI constructor
  * The constructor takes possible arguments an creates an instance of the assFormulaQuestionGUI object.
  * @param integer $id The database id of a multiple choice question object
  * @access public
  */
 function __construct($id = -1)
 {
     parent::__construct();
     $this->object = new assFormulaQuestion();
     $this->newUnitId = null;
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
 /**
  * @param $qId
  */
 public function __construct($qId = -1)
 {
     parent::__construct();
     require_once 'Modules/TestQuestionPool/classes/class.assKprimChoice.php';
     $this->object = new assKprimChoice();
     if ($qId > 0) {
         $this->object->loadFromDb($qId);
     }
 }
Example #6
0
 /**
  * assErrorTextGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the assOrderingHorizontalGUI object.
  *
  * @param integer $id The database id of a single choice question object
  * @access public
  */
 public function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Modules/TestQuestionPool/classes/class.assErrorText.php";
     $this->object = new assErrorText();
     $this->setErrorMessage($this->lng->txt("msg_form_save_error"));
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
 /**
  * assOrderingQuestionGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the assOrderingQuestionGUI object.
  *
  * @param integer $id The database id of a ordering question object
  *                    
  * @return assOrderingQuestionGUI
  */
 public function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Modules/TestQuestionPool/classes/class.assOrderingQuestion.php";
     $this->object = new assOrderingQuestion();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
     $this->object->setOutputType(OUTPUT_JAVASCRIPT);
 }
 /**
  * assImagemapQuestionGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the assImagemapQuestionGUI object.
  *
  * @param integer $id The database id of a image map question object.
  * 
  * @return \assImagemapQuestionGUI
  */
 public function __construct($id = -1)
 {
     parent::__construct();
     include_once './Modules/TestQuestionPool/classes/class.assImagemapQuestion.php';
     $this->object = new assImagemapQuestion();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
     $assessmentSetting = new ilSetting("assessment");
     $this->linecolor = strlen($assessmentSetting->get("imap_line_color")) ? "#" . $assessmentSetting->get("imap_line_color") : "#FF0000";
 }
 /**
  * SyntaxTreeGUI constructor
  *
  * The constructor takes possible arguments an creates an instance of the SyntaxTreeGUI object.
  *
  * @param integer $id The database id of a text subset question object
  * @access public
  * @ilCtrl_IsCalledBy SyntaxTreeGUI: ilObjQuestionPoolGUI
  */
 function __construct($id = -1)
 {
     $this->ownDir = "./Customizing/global/plugins/Modules/TestQuestionPool/Questions/SyntaxTree";
     $this->cssDir = "./Customizing/global/plugins/Modules/TestQuestionPool/Questions/SyntaxTree/css";
     parent::__construct();
     include_once "class.SyntaxTree.php";
     $this->object = new SyntaxTree();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
 /**
  * assJSMEQuestionGUI constructor	
  * The constructor takes possible arguments an creates an instance of the assJSMEQuestionGUI object.
  *
  * @param integer $id The database id of a TemplateQuestion question object
  * @access public
  */
 function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Services/Component/classes/class.ilPlugin.php";
     $plugin = ilPlugin::getPluginObject(IL_COMP_MODULE, "TestQuestionPool", "qst", "assJSMEQuestion");
     $plugin->includeClass("class.assJSMEQuestion.php");
     $this->object = new assJSMEQuestion();
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
 }
 /**
  * assAccountingQuestionGUI constructor
  *
  * The constructor takes possible arguments and creates an instance of the assAccountingQuestionGUI object.
  *
  * @param integer $id The database id of a question object
  * @access public
  */
 public function __construct($id = -1)
 {
     parent::__construct();
     include_once "./Services/Component/classes/class.ilPlugin.php";
     $this->plugin = ilPlugin::getPluginObject(IL_COMP_MODULE, "TestQuestionPool", "qst", "assAccountingQuestion");
     $this->plugin->includeClass("class.assAccountingQuestion.php");
     $this->object = new assAccountingQuestion();
     $this->newUnitId = null;
     if ($id >= 0) {
         $this->object->loadFromDb($id);
     }
     $this->tpl->addCss($this->plugin->getStyleSheetLocation('accqstStyles.css') . self::URL_SUFFIX, '');
 }