protected function addRouteToGroup (\MvcCore\IRoute & $route, $routeName, $groupName, $prepend) {
		if ($groupName === NULL) {
			$routesGroupsKey = '';
		} else {
			$routesGroupsKey = $groupName;
			$route->SetGroupName($groupName);
		}
		if (isset($this->routesGroups[$routesGroupsKey])) {
			$groupRoutes = & $this->routesGroups[$routesGroupsKey];
		} else {
			$groupRoutes = [];
			$this->routesGroups[$routesGroupsKey] = & $groupRoutes;
		}
		if ($prepend) {
			$newItem = [$routeName => $route];
			$groupRoutes = $newItem + $groupRoutes;
		} else {
			$groupRoutes[$routeName] = $route;
		}
	}
protected function addRouteToGroup (\MvcCore\IRoute & $route, $routeName, $groupName, $prepend) {
		if ($groupName === NULL) {
			$routesGroupsKey = '';
		} else {
			$routesGroupsKey = $groupName;
			$route->SetGroupName($groupName);
		}
		if (isset($this->routesGroups[$routesGroupsKey])) {
			$groupRoutes = & $this->routesGroups[$routesGroupsKey];
		} else {
			$groupRoutes = [];
			$this->routesGroups[$routesGroupsKey] = & $groupRoutes;
		}
		if ($prepend) {
			$newItem = [$routeName => $route];
			$groupRoutes = $newItem + $groupRoutes;
		} else {
			$groupRoutes[$routeName] = $route;
		}
	}
protected function addRouteToGroup ( \ MvcCore \ IRoute & $ route , $ routeName , $ groupName , $ prepend ) { if ( $ groupName === NULL ) { $ routesGroupsKey = '' ; } else { $ routesGroupsKey = $ groupName ; $ route -> SetGroupName ( $ groupName ) ; } if ( isset ( $ this -> routesGroups [ $ routesGroupsKey ] ) ) { $ groupRoutes = & $ this -> routesGroups [ $ routesGroupsKey ] ; } else { $ groupRoutes = [ ] ; $ this -> routesGroups [ $ routesGroupsKey ] = & $ groupRoutes ; } if ( $ prepend ) { $ newItem = [ $ routeName => $ route ] ; $ groupRoutes = $ newItem + $ groupRoutes ; } else { $ groupRoutes [ $ routeName ] = $ route ; } }
Add route instance into named routes group. Every routes group is chosen
in routing moment by first parsed word from requested URL.
@param \MvcCore\Route	$route		A route instance reference.
@param string			$routeName	Route name.
@param string|NULL		$groupName	Group name, first parsed word from requested URL.
@param bool				$prepend	IF `TRUE`, prepend route instance, `FALSE` otherwise.
@return void
Add route instance into named routes group . Every routes group is chosen in routing moment by first parsed word from requested URL .