You are here

class ServicesClientPlugin in Services Client 7

Same name and namespace in other branches
  1. 7.2 include/plugin.inc \ServicesClientPlugin

Base plugin class

Hierarchy

Expanded class hierarchy of ServicesClientPlugin

File

include/plugin.inc, line 12
Base plugin definitions. All other plugins should be extended from this set of plugins.

View source
class ServicesClientPlugin {

  /**
   * Connection hook definition
   */
  protected $hook;

  /**
   * Plugin specific configuration
   *
   * @var array
   */
  protected $config;
  public function __construct($hook, $config) {

    // Store configuration and connection definition
    $this->hook = $hook;
    $this->config = $config;
  }

  /**
   * Configuration form options
   */
  public function configForm(&$form, &$form_state) {
    $form['markup'] = array(
      '#type' => 'item',
      '#markup' => t("This plugin doesn't provide any configuration options."),
    );
  }
  public function configFormValidate(&$form, &$form_state) {
  }
  public function configFormSubmit(&$form, &$form_state) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ServicesClientPlugin::$config protected property Plugin specific configuration
ServicesClientPlugin::$hook protected property Connection hook definition
ServicesClientPlugin::configForm public function Configuration form options 5
ServicesClientPlugin::configFormSubmit public function 5
ServicesClientPlugin::configFormValidate public function
ServicesClientPlugin::__construct public function