You are here

public function AuthcacheP13nDefaultRequestHandler::handle in Authenticated User Page Caching (Authcache) 7.2

Render and print the response according to the given parameters.

Overrides AuthcacheP13nRequestHandlerInterface::handle

File

modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestHandler.inc, line 75
Defines default request handler class

Class

AuthcacheP13nDefaultRequestHandler
Default request handler class for personalized fragments.

Code

public function handle($params) {
  $params = $this
    ->filter('request', $params);
  $input = $this
    ->validate($params);
  $context = $this
    ->getContext($input);
  $result = $this
    ->build($input, $context);
  $response = $this
    ->encode($result);
  print $this
    ->filter('response', $response);
}