/** * Returns relevant URL. * * @return \moodle_url */ public function get_url() { return \tool_usertours\helper::get_view_tour_link($this->objectid); }
/** * Reset the tour state for all users. * * @param int $tourid The ID of the tour to remove. */ protected function reset_tour_for_all($tourid) { require_sesskey(); $tour = tour::instance($tourid); $tour->mark_major_change(); redirect(helper::get_view_tour_link($tourid), get_string('tour_resetforall', 'tool_usertours')); }