abstract class RestfulPluginBase in RESTful 7
@file Contains \RestfulPluginBase.
Hierarchy
- class \RestfulPluginBase implements RestfulPluginInterface
Expanded class hierarchy of RestfulPluginBase
File
- includes/
RestfulPluginBase.php, line 8 - Contains \RestfulPluginBase.
View source
abstract class RestfulPluginBase implements \RestfulPluginInterface {
/**
* @var array
*
* The plugin definition array.
*/
protected $plugin;
/**
* Class constructor.
*
* @param array $plugin
* The plugin definition array.
*/
public function __construct(array $plugin) {
$this->plugin = $plugin;
}
/**
* {@inheritdoc}
*/
public function getPluginKey($key = NULL) {
return isset($this->plugin[$key]) ? $this->plugin[$key] : NULL;
}
/**
* {@inheritdoc}
*/
public function setPluginKey($key, $value) {
$this->plugin[$key] = $value;
}
/**
* {@inheritdoc}
*/
public function getPlugin() {
return $this->plugin;
}
/**
* {@inheritdoc}
*/
public function setPlugin($plugin) {
$this->plugin = $plugin;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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:: |
|
RestfulPluginBase:: |
public | function | Class constructor. | 4 |