You are here

interface AuthcacheP13nRequestRouterInterface in Authenticated User Page Caching (Authcache) 7.2

Interface for routes to requests and vice versa.

Hierarchy

Expanded class hierarchy of AuthcacheP13nRequestRouterInterface

All classes that implement AuthcacheP13nRequestRouterInterface

File

modules/authcache_p13n/includes/AuthcacheP13nRequestRouterInterface.inc, line 10
Defines the interface for mapping routes to requests and vice versa.

View source
interface AuthcacheP13nRequestRouterInterface {

  /**
   * Return a list of existing route ids.
   *
   * @return array
   *   List of existing route ids.
   */
  public function getRoutes();

  /**
   * Return an instance of AuthcacheP13nRequestHandlerInterface.
   *
   * @param String $route_id
   *   The identifier of a request (e.g., frag/form-token).
   *
   * @return AuthcacheP13nRequestHandlerInterface|FALSE
   *   An appropriate request handler.
   */
  public function getHandler($route_id);

  /**
   * Given a request id and an optional argument, return the appropriate URL.
   *
   * @param String $route_id
   *   The identifier of a request (e.g., frag/form-token).
   *
   * @return String|FALSE
   *   An URL which can be used to call back to the request with the given
   *   argument.
   */
  public function generateURL($route_id, $arg = NULL);

  /**
   * Rebuild the routing information after configuration changes.
   */
  public function rebuild();

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nRequestRouterInterface::generateURL public function Given a request id and an optional argument, return the appropriate URL. 2
AuthcacheP13nRequestRouterInterface::getHandler public function Return an instance of AuthcacheP13nRequestHandlerInterface. 2
AuthcacheP13nRequestRouterInterface::getRoutes public function Return a list of existing route ids. 2
AuthcacheP13nRequestRouterInterface::rebuild public function Rebuild the routing information after configuration changes. 2