public function __construct($data, $question, $case_sensitive, $open_answer) { $this->question = $question; $this->open_answer = $open_answer; $this->case_sensitive = $case_sensitive; parent::__construct($data); }
public function __construct($id_test, $data = array(), $id_nodo_parent = null, $isCloze = false, $savedExerciseType = false) { $this->id_test = $id_test; $this->id_nodo_parent = $id_nodo_parent; $this->isCloze = $isCloze ? 'true' : 'false'; $this->savedExerciseType = $savedExerciseType; parent::__construct($data); }
public function __construct($data, $question, $case_sensitive = false, $modifiable = true) { $dh = $GLOBALS['dh']; $this->question = $question; $this->case_sensitive = $case_sensitive; $this->ordine = array(); $this->answers = array(); $this->modifiable = $modifiable; require_once MODULES_TEST_PATH . '/include/nodeTest.class.inc.php'; $this->questionObj = nodeTest::readNode($this->question); $res = $dh->test_getNodesByParent($this->questionObj->id_nodo); foreach ($res as $k => $v) { $this->questionObj->addChild(nodeTest::readNode($v, $this->questionObj)); } $tmp = array(); foreach ($data as $k => $v) { $tmp[$v['ordine']][] = $v; } parent::__construct($tmp); }
public function __construct($message) { $this->message = $message; parent::__construct(); }
public function __construct($id_course) { $this->id_course = $id_course; parent::__construct(); }
public function __construct($id_test, $data = array(), $id_nodo_parent = null) { $this->id_test = $id_test; $this->id_nodo_parent = $id_nodo_parent; parent::__construct($data); }