class AuthcacheP13nTestEchoSettingValidator in Authenticated User Page Caching (Authcache) 7.2
Stub class for setting request validator.
Hierarchy
- class \AuthcacheP13nTestEchoSettingValidator implements AuthcacheP13nSettingValidatorInterface
Expanded class hierarchy of AuthcacheP13nTestEchoSettingValidator
File
- modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc, line 505 - Stub classes for testing.
View source
class AuthcacheP13nTestEchoSettingValidator implements AuthcacheP13nSettingValidatorInterface {
/**
* {@inheritdoc}
*/
public function validate($params) {
$valid = !isset($params['valid']) || $params['valid'];
if (!$valid) {
throw new AuthcacheP13nRequestInvalidInput();
}
return array(
'validated' => TRUE,
) + $params;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestEchoSettingValidator:: |
public | function |
Validate the given parameters. Overrides AuthcacheP13nSettingValidatorInterface:: |