public function __construct($params = array()) { parent::__construct($params); $this->mcbdata = false; $this->courselist = false; $this->tabletype = get_config('block_ilp', 'mis_plugin_course_tabletype'); }
public function __construct($params = array()) { parent::__construct($params); //find out whether a table or stored procedure is used in queries $this->tabletype = get_config('block_ilp', 'mis_plugin_simple_tabletype'); $this->data = false; }
public function __construct($params = array()) { parent::__construct($params); $this->normdata = false; $this->courselist = false; $this->tabletype = get_config('block_ilp', 'mis_plugin_registerterm_tabletype'); //get the offset of weeks $this->weekoffset = 53 - date('W', get_config('block_ilp', 'mis_plugin_registerterm_termonestart')); //number of terms $this->numterms = get_config('block_ilp', 'mis_plugin_registerterm_terms'); $this->terms[] = array(); if (!empty($this->numterms)) { for ($i = 0; $i < $this->numterms; $i++) { $s = $i + 1; $this->terms[$i] = array(); $this->terms[$i]['start'] = date('W', get_config('block_ilp', "mis_plugin_registerterm_term{$s}start")); $this->terms[$i]['startts'] = get_config('block_ilp', "mis_plugin_registerterm_term{$s}start"); $this->terms[$i]['end'] = date('W', get_config('block_ilp', "mis_plugin_registerterm_term{$s}end")); $this->terms[$i]['endts'] = get_config('block_ilp', "mis_plugin_registerterm_term{$s}end"); } } $latecodes = get_config('block_ilp', 'mis_plugin_registerterm_late'); $absentcodes = get_config('block_ilp', 'mis_plugin_registerterm_absent'); $noclasscodes = get_config('block_ilp', 'mis_plugin_registerterm_noclass'); $presentcodes = get_config('block_ilp', 'mis_plugin_registerterm_present'); $this->latecodes = !empty($latecodes) ? explode(',', $latecodes) : array(''); $this->absentcodes = !empty($absentcodes) ? explode(',', $absentcodes) : array(''); $this->noclasscodes = !empty($noclasscodes) ? explode(',', $noclasscodes) : array(''); $this->presentcodes = !empty($presentcodes) ? explode(',', $presentcodes) : array(''); }
public function __construct($params = array()) { parent::__construct($params); }