function __construct($student_id = null, $course_id = null) { global $CFG, $USER, $PAGE; $this->linkurl = $CFG->wwwroot . "/blocks/ilp/actions/view_main.php?user_id=" . $student_id . "&course_id={$course_id}"; $this->student_id = $student_id; $this->course_id = $course_id; $this->selectedtab = false; //call the parent constructor parent::__construct(); $this->dbc = new ilp_archive_db(); }
function __construct($student_id = null, $course_id = NULL) { global $CFG; $this->linkurl = $CFG->wwwroot . $_SERVER["SCRIPT_NAME"] . "?user_id=" . $student_id . "&course_id={$course_id}"; $this->student_id = $student_id; $this->course_id = $course_id; $this->filepath = $CFG->dirroot . "/blocks/ilp/classes/dashboard/tabs/entries/overview.php"; //set the id of the tab that will be displayed first as default $this->default_tab_id = $this->plugin_id . '-1'; //call the parent constructor parent::__construct(); }
function __construct($student_id = null, $course_id = null) { global $CFG, $USER, $PAGE; //$this->linkurl = $CFG->wwwroot.$_SERVER["SCRIPT_NAME"]."?user_id=".$student_id."&course_id={$course_id}"; $this->linkurl = $CFG->wwwroot . "/blocks/ilp/actions/view_main.php?user_id=" . $student_id . "&course_id={$course_id}"; $this->student_id = $student_id; $this->course_id = $course_id; $this->selectedtab = false; $defaulttab = get_config('block_ilp', 'ilp_dashboard_reports_tab_default'); //set the id of the tab that will be displayed first as default $this->default_tab_id = empty($defaulttab) ? '1' : get_config('block_ilp', 'ilp_dashboard_reports_tab_default'); //call the parent constructor parent::__construct(); }