public function __construct($cmid, $checkcanbookusers = true, $urlParams = array('searchText' => '', 'searchLocation' => '', 'searchInstitution' => '', 'searchName' => '', 'searchSurname' => ''), $page = 0, $perpage = 0)
 {
     parent::__construct($cmid);
     $this->checkcanbookusers = $checkcanbookusers;
     $this->filters = $urlParams;
     $this->page = $page;
     $this->perpage = $perpage;
     if (isset($this->filters['sort']) && $this->filters['sort'] === 1) {
         $this->sort = ' ORDER BY bo.coursestarttime DESC';
     }
     $this->fill_options();
     $this->get_options_data();
     // call only when needed TODO
     $this->set_booked_visible_users();
     $this->add_additional_info();
 }