class AuthcacheP13nTestCoreServiceStub in Authenticated User Page Caching (Authcache) 7.2
Stub class for core services.
Hierarchy
- class \AuthcacheP13nTestCoreServiceStub implements AuthcacheP13nCoreServiceInterface
Expanded class hierarchy of AuthcacheP13nTestCoreServiceStub
File
- modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc, line 195 - Stub classes for testing.
View source
class AuthcacheP13nTestCoreServiceStub implements AuthcacheP13nCoreServiceInterface {
protected $observer;
/**
* Construct new stub class.
*/
public function __construct($observer) {
$this->observer = $observer;
}
/**
* {@inheritdoc}
*/
public function drupalAddHttpHeader($name, $value, $append = FALSE) {
return $this->observer
->record($this, __FUNCTION__, func_get_args());
}
/**
* {@inheritdoc}
*/
public function drupalBootstrap($phase = NULL, $new_phase = TRUE) {
return $this->observer
->record($this, __FUNCTION__, func_get_args());
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestCoreServiceStub:: |
protected | property | ||
AuthcacheP13nTestCoreServiceStub:: |
public | function |
Sets an HTTP response header for the current page. Overrides AuthcacheP13nCoreServiceInterface:: |
|
AuthcacheP13nTestCoreServiceStub:: |
public | function |
Ensures Drupal is bootstrapped to the specified phase. Overrides AuthcacheP13nCoreServiceInterface:: |
|
AuthcacheP13nTestCoreServiceStub:: |
public | function | Construct new stub class. |