src/MvcCore/Ext/Routers/Module/RewriteRoutingChecks.php
protected function rewriteRoutingCheckRoute (\MvcCore\IRoute & $route, array $additionalInfo) {
		list ($requestMethod) = $additionalInfo;

		$routeMethod = $route->GetMethod();
		if ($routeMethod !== NULL && $routeMethod !== $requestMethod) return TRUE;

		$modules = $route->GetAdvancedConfigProperty(\MvcCore\Ext\Routers\Modules\IRoute::CONFIG_ALLOWED_MODULES);
		if (is_array($modules) && !in_array($this->currentModule, $modules)) return TRUE;

		return FALSE;
	}
protected function rewriteRoutingCheckRoute (\MvcCore\IRoute & $route, array $additionalInfo) {
		list ($requestMethod) = $additionalInfo;

		$routeMethod = $route->GetMethod();
		if ($routeMethod !== NULL && $routeMethod !== $requestMethod) return TRUE;

		$modules = $route->GetAdvancedConfigProperty(\MvcCore\Ext\Routers\Modules\IRoute::CONFIG_ALLOWED_MODULES);
		if (is_array($modules) && !in_array($this->currentModule, $modules)) return TRUE;

		return FALSE;
	}
protected function rewriteRoutingCheckRoute ( \ MvcCore \ IRoute & $ route , array $ additionalInfo ) { list ( $ requestMethod ) = $ additionalInfo ; $ routeMethod = $ route -> GetMethod ( ) ; if ( $ routeMethod !== NULL && $ routeMethod !== $ requestMethod ) return TRUE ; $ modules = $ route -> GetAdvancedConfigProperty ( \ MvcCore \ Ext \ Routers \ Modules \ IRoute :: CONFIG_ALLOWED_MODULES ) ; if ( is_array ( $ modules ) && ! in_array ( $ this -> currentModule , $ modules ) ) return TRUE ; return FALSE ; }
Return `TRUE` if there is possible by additional info array records
to route request by given route as first argument. For example if route
object has defined http method and request has the same method or not
or if route is allowed in currently routed module.
@param \MvcCore\IRoute $route
@param array $additionalInfo
@return bool
Return TRUE if there is possible by additional info array records to route request by given route as first argument . For example if route object has defined http method and request has the same method or not or if route is allowed in currently routed module .