class AuthcacheP13nTestFragmentAccessStub in Authenticated User Page Caching (Authcache) 7.2
Stub fragment access checker.
Hierarchy
- class \AuthcacheP13nTestFragmentAccessStub implements AuthcacheP13nFragmentAccessInterface
Expanded class hierarchy of AuthcacheP13nTestFragmentAccessStub
File
- modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc, line 398 - Stub classes for testing.
View source
class AuthcacheP13nTestFragmentAccessStub implements AuthcacheP13nFragmentAccessInterface {
protected $observer;
/**
* Construct new stub class.
*/
public function __construct($observer) {
$this->observer = $observer;
}
/**
* {@inheritdoc}
*/
public function check($account, $key, $subject, $context) {
return $this->observer
->record($this, __FUNCTION__, func_get_args());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestFragmentAccessStub:: |
protected | property | ||
AuthcacheP13nTestFragmentAccessStub:: |
public | function |
Check whether the user has access to the given fragment. Overrides AuthcacheP13nFragmentAccessInterface:: |
|
AuthcacheP13nTestFragmentAccessStub:: |
public | function | Construct new stub class. |