noIDs = (bool) $params->get('sef_ids'); $categories = new RouterViewConfiguration('map'); $categories->setKey('id'); $this->registerView($categories); /* $category = new RouterViewConfiguration('map'); $category->setKey('id')->setParent($categories, 'parent_id')->setNestable(); $this->registerView($category); $file = new RouterViewConfiguration('file'); $file->setKey('id')->setParent($category, 'catid');//->setNestable(); $this->registerView($file); //$play = new RouterViewConfiguration('play'); //$play->setKey('id')->setParent($category, 'catid');//->setNestable(); //$this->registerView($play); $views = array('play', 'download', 'feed', 'user'); foreach ($views as $k => $v) { $item = new RouterViewConfiguration($v); $item->setName($v)->setParent($file, 'id')->setParent($category, 'catid'); $this->registerView($item); } */ parent::__construct($app, $menu); //phocadownloadimport('phocadownload.path.routerrules'); //phocadownloadimport('phocadownload.category.category'); //$this->attachRule(new MenuRules($this)); //$this->attachRule(new PhocaDownloadRouterrules($this)); $this->attachRule(new StandardRules($this)); $this->attachRule(new NomenuRules($this)); } } function PhocaMapsBuildRoute(&$query) { $app = Factory::getApplication(); $router = new PhocamapsRouter($app, $app->getMenu()); return $router->build($query); } function PhocaMapsParseRoute($segments) { $app = Factory::getApplication(); $router = new PhocamapsRouter($app, $app->getMenu()); return $router->parse($segments); }