/** * Construct the tour table. */ public function __construct() { parent::__construct('tours'); $baseurl = new \moodle_url('/tool/usertours/configure.php'); $this->define_baseurl($baseurl); // Column definition. $this->define_columns(array('name', 'description', 'appliesto', 'enabled', 'actions')); $this->define_headers(array(get_string('name', 'tool_usertours'), get_string('description', 'tool_usertours'), get_string('appliesto', 'tool_usertours'), get_string('enabled', 'tool_usertours'), get_string('actions', 'tool_usertours'))); $this->set_attribute('class', 'admintable generaltable'); $this->setup(); $this->tourcount = helper::count_tours(); }