You are here

function authcache_p13n_request_get_router in Authenticated User Page Caching (Authcache) 7.2

Return the router class for requests.

Related topics

5 calls to authcache_p13n_request_get_router()
AuthcacheP13nTestDefaultRequestRouter::setUp in modules/authcache_p13n/tests/authcache_p13n.frontcontroller.test
Sets up a Drupal site for running functional and integration tests.
authcache_p13n_admin_routes in modules/authcache_p13n/authcache_p13n.admin.inc
Display a list of available routes and frontcontroller settings.
authcache_p13n_request_exists in modules/authcache_p13n/authcache_p13n.module
Return true if the given route exists in the router.
authcache_p13n_request_get_callback in modules/authcache_p13n/authcache_p13n.module
Return uri for the request.
authcache_p13n_request_router_rebuild in modules/authcache_p13n/authcache_p13n.module
Rebuild the router of personalization request handlers.

File

modules/authcache_p13n/authcache_p13n.module, line 1188
Provides methods for serving personalized content fragments.

Code

function authcache_p13n_request_get_router() {
  $router =& drupal_static(__FUNCTION__);
  if (!isset($router)) {
    $routerclass = variable_get('authcache_p13n_router', 'AuthcacheP13nDefaultRequestRouter');
    $router = new $routerclass();
  }
  return $router;
}