You are here

abstract class RestfulPluginBase in RESTful 7

@file Contains \RestfulPluginBase.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
RestfulPluginBase::$plugin protected property The plugin definition array.
RestfulPluginBase::getPlugin public function Gets information about the restful plugin. Overrides RestfulPluginInterface::getPlugin
RestfulPluginBase::getPluginKey public function Gets information about the restful plugin key. Overrides RestfulPluginInterface::getPluginKey
RestfulPluginBase::setPlugin public function Sets information about the restful plugin. Overrides RestfulPluginInterface::setPlugin
RestfulPluginBase::setPluginKey public function Gets information about the restful plugin key. Overrides RestfulPluginInterface::setPluginKey
RestfulPluginBase::__construct public function Class constructor. 4