abstract class RestfulAuthenticationBase in RESTful 7
@file Contains RestfulAuthenticationBase.
Hierarchy
- class \RestfulPluginBase implements RestfulPluginInterface
- class \RestfulAuthenticationBase implements RestfulAuthenticationInterface
Expanded class hierarchy of RestfulAuthenticationBase
File
- plugins/
authentication/ RestfulAuthenticationBase.php, line 8 - Contains RestfulAuthenticationBase.
View source
abstract class RestfulAuthenticationBase extends \RestfulPluginBase implements \RestfulAuthenticationInterface {
/**
* Settings from the plugin definition.
*
* @var array
*/
protected $settings;
/**
* Constructor.
*/
public function __construct($plugin) {
$this
->setPlugin($plugin);
$this->settings = $this
->getPluginKey('settings');
}
/**
* {@inheritdoc}
*/
public function applies(array $request = array(), $method = \RestfulInterface::GET) {
// By default assume that the request can be checked for authentication.
return TRUE;
}
/**
* {@inheritdoc}
*/
public function getName() {
return $this
->getPluginKey('name');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RestfulAuthenticationBase:: |
protected | property | Settings from the plugin definition. | |
RestfulAuthenticationBase:: |
public | function |
Determines if the request can be checked for authentication. For example,
when authenticating with HTTP header, return FALSE if the header values do
not exist. Overrides RestfulAuthenticationInterface:: |
2 |
RestfulAuthenticationBase:: |
public | function |
Get the name of the authentication plugin. Overrides RestfulAuthenticationInterface:: |
|
RestfulAuthenticationBase:: |
public | function |
Constructor. Overrides RestfulPluginBase:: |
|
RestfulAuthenticationInterface:: |
public | function | Authenticate the request by trying to match a user. | 3 |
RestfulPluginBase:: |
protected | property | The plugin definition array. | |
RestfulPluginBase:: |
public | function |
Gets information about the restful plugin. Overrides RestfulPluginInterface:: |
|
RestfulPluginBase:: |
public | function |
Gets information about the restful plugin key. Overrides RestfulPluginInterface:: |
|
RestfulPluginBase:: |
public | function |
Sets information about the restful plugin. Overrides RestfulPluginInterface:: |
|
RestfulPluginBase:: |
public | function |
Gets information about the restful plugin key. Overrides RestfulPluginInterface:: |