public function find_all(int $limitfrom = 0, int $limitnum = 0) : array {
        global $DB;
        $records = $DB->get_records($this->favouritetable, null, '', '*', $limitfrom, $limitnum);
        return $this->get_list_of_favourites_from_records($records);
    }