setKey('id'); $this->registerView($calendar); // eventslist route $eventslist = new RouterViewConfiguration('eventslist'); $eventslist->setKey('id'); $this->registerView($eventslist); // event route $event = new RouterViewConfiguration('event'); $event->setKey('id'); $this->registerView($event); // categories route $categories = new RouterViewConfiguration('categories'); $categories->setKey('id'); $this->registerView($categories); // category route $category = new RouterViewConfiguration('category'); $category->setKey('id'); $this->registerView($category); // attendees route $attendees = new RouterViewConfiguration('attendees'); $attendees->setKey('id'); $this->registerView($attendees); // day route $day = new RouterViewConfiguration('day'); $day->setKey('id'); $this->registerView($day); // editevent route $editevent = new RouterViewConfiguration('editevent'); $editevent->setKey('id'); $this->registerView($editevent); // editvenue route $editvenue = new RouterViewConfiguration('editvenue'); $editvenue->setKey('id'); $this->registerView($editvenue); // myattendances route $myattendances = new RouterViewConfiguration('myattendances'); $myattendances->setKey('id'); $this->registerView($myattendances); // myevents route $myevents = new RouterViewConfiguration('myevents'); $myevents->setKey('id'); $this->registerView($myevents); // myvenues route $myvenues = new RouterViewConfiguration('myvenues'); $myvenues->setKey('id'); $this->registerView($myvenues); // search route $search = new RouterViewConfiguration('search'); $search->setKey('id'); $this->registerView($search); // venue route $venue = new RouterViewConfiguration('venue'); $venue->setKey('id'); $this->registerView($venue); // venueslist route $venueslist = new RouterViewConfiguration('venueslist'); $venueslist->setKey('id'); $this->registerView($venueslist); // venues route $venues = new RouterViewConfiguration('venues'); $venues->setKey('id'); $this->registerView($venues); // weekcal route $weekcal = new RouterViewConfiguration('weekcal'); $weekcal->setKey('id'); $this->registerView($weekcal); parent::__construct($app, $menu); $this->attachRule(new MenuRules($this)); $this->attachRule(new StandardRules($this)); $this->attachRule(new JemNomenuRules($this)); } } function jemBuildRoute(&$query) { $app = Factory::getApplication(); $router = new JemRouter($app, $app->getMenu()); return $router->build($query); } function jemParseRoute($segments) { $app = Factory::getApplication(); $router = new JemRouter($app, $app->getMenu()); return $router->parse($segments); } ?>