function read() { global $ilDB; parent::read(); $obj_set = $ilDB->queryF('SELECT * FROM aicc_units WHERE obj_id = %s', array('integer'), array($this->getId())); while ($obj_rec = $ilDB->fetchAssoc($obj_set)) { $this->setAUType($obj_rec["c_type"]); $this->setCommand_line($obj_rec["command_line"]); $this->setMaxTimeAllowed($obj_rec["max_time_allowed"]); $this->setTimeLimitAction($obj_rec["time_limit_action"]); $this->setMaxScore($obj_rec["max_score"]); $this->setCoreVendor($obj_rec["core_vendor"]); $this->setSystemVendor($obj_rec["system_vendor"]); $this->setFilename($obj_rec["file_name"]); $this->setMasteryScore($obj_rec["mastery_score"]); $this->setWebLaunch($obj_rec["web_launch"]); $this->setAUPassword($obj_rec["au_password"]); } }
function read() { global $ilDB; parent::read(); $obj_set = $ilDB->queryF('SELECT * FROM aicc_course WHERE obj_id = %s', array('integer'), array($this->id)); while ($obj_rec = $ilDB->fetchAssoc($obj_set)) { $this->setCourseCreator($obj_rec["course_creator"]); $this->setCourseId($obj_rec["course_id"]); $this->setCourseSystem($obj_rec["course_system"]); $this->setCourseTitle($obj_rec["course_title"]); $this->setLevel($obj_rec["c_level"]); $this->setMaxFieldsCst($obj_rec["max_fields_cst"]); $this->setMaxFieldsOrt($obj_rec["max_fields_ort"]); $this->setTotalAUs($obj_rec["total_aus"]); $this->setTotalBlocks($obj_rec["total_blocks"]); $this->setTotalComplexObj($obj_rec["total_complex_obj"]); $this->setTotalObjectives($obj_rec["total_objectives"]); $this->setVersion($obj_rec["version"]); $this->setMaxNormal($obj_rec["max_normal"]); $this->setDescription($obj_rec["description"]); } }