public function AuthcacheP13nObjectResourcePreprocessor::__construct in Authenticated User Page Caching (Authcache) 7.2
Construct new instance and populate it with the given resources.
Parameters
array $preprocessors: (Optional) A mapping of resource processor names to PHP functions.
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nObjectResourcePreprocessor.inc, line 22 - Defines the class AuthcacheP13nObjectResourcePreprocessor.
Class
- AuthcacheP13nObjectResourcePreprocessor
- A utility class suitable for preparing resources for the object factory.
Code
public function __construct(array $preprocessors) {
$this->preprocessors = $preprocessors;
$this->types = array(
'value' => 'value',
'func' => 'func',
'class' => 'class',
'collection' => 'collection',
);
}