1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41:
<?php
namespace BaseModule;
use \Nette\Application\Routers\RouteList,
\Nette\Application\Routers\Route;
class RouterFactory extends \Nette\Object {
public function createRouter() {
$router = new RouteList();
$router[] = new Route('index.php', 'Base:Homepage:default', Route::ONE_WAY);
$router[] = new Route('error', 'Base:Error:default');
$router[] = new Route('search[/<action>][/<param>][/<start>][/<stop>][/<id>]', 'Search:Search:default');
$router[] = new Route('predict', 'Predict:Predict:default');
$router[] = new Route('rss[/<action>]', 'Base:Rss:view');
$router[] = new Route('contact', 'Base:Homepage:contact');
$router[] = new Route('download', 'Base:Homepage:download');
$router[] = new Route('pesek', 'Base:Pesek:default');
$router[] = new Route('analyse/conservancy[/<action>/<tmpdir>/<winsize>[/<accession>]]', 'Analyse:Conservancy:default');
$router[] = new Route('analyse[/<action>]', 'Analyse:Analyse:default');
$router[] = new Route('<presenter>/<action>[/<id>]', 'Base:Homepage:default');
return $router;
}
}