Commit 65dc722d authored by dawehner's avatar dawehner Committed by tim.plunkett

Add abstract classes to all kind of plugins

parent 9ac1406a
......@@ -20,7 +20,7 @@
/**
* The base plugin to handle access control.
*/
class AccessPluginBase extends Plugin {
abstract class AccessPluginBase extends Plugin {
/**
* Initialize the plugin.
*
......
......@@ -22,7 +22,7 @@
*
* @ingroup views_area_handlers
*/
class AreaPluginBase extends Handler {
abstract class AreaPluginBase extends Handler {
/**
* Get this field's label.
*/
......
......@@ -40,7 +40,7 @@
*
* @ingroup views_argument_handlers
*/
class ArgumentPluginBase extends Handler {
abstract class ArgumentPluginBase extends Handler {
var $validator = NULL;
var $argument = NULL;
......
......@@ -20,7 +20,7 @@
/**
* The fixed argument default handler; also used as the base.
*/
class ArgumentDefaultPluginBase extends Plugin {
abstract class ArgumentDefaultPluginBase extends Plugin {
/**
* Return the default argument.
*
......
......@@ -20,7 +20,7 @@
/**
* Base argument validator plugin to provide basic functionality.
*/
class ArgumentValidatorPluginBase extends Plugin {
abstract class ArgumentValidatorPluginBase extends Plugin {
/**
* Initialize this plugin with the view and the argument
......
......@@ -20,7 +20,7 @@
/**
* The base plugin to handle caching.
*/
class CachePluginBase extends Plugin {
abstract class CachePluginBase extends Plugin {
/**
* Contains all data that should be written/read from cache.
*/
......
......@@ -28,7 +28,7 @@
* The default display plugin handler. Display plugins handle options and
* basic mechanisms for different output methods.
*/
class DisplayPluginBase extends Plugin {
abstract class DisplayPluginBase extends Plugin {
/**
* The top object of a view.
*
......
......@@ -22,7 +22,7 @@
/**
* The base plugin to handle exposed filter forms.
*/
class ExposedFormPluginBase extends Plugin {
abstract class ExposedFormPluginBase extends Plugin {
/**
* Initialize the plugin.
......
......@@ -53,7 +53,7 @@
* plugin_id = "standard"
* )
*/
class FieldPluginBase extends Handler {
abstract class FieldPluginBase extends Handler {
var $field_alias = 'unknown';
var $aliases = array();
......
......@@ -42,7 +42,7 @@
* plugin_id = "standard"
* )
*/
class FilterPluginBase extends Handler {
abstract class FilterPluginBase extends Handler {
/**
* Contains the actual value of the field,either configured in the views ui
* or entered in the exposed filters.
......
......@@ -20,7 +20,7 @@
/**
* The base plugin to handle localization of Views strings.
*/
class LocalizationPluginBase extends Plugin {
abstract class LocalizationPluginBase extends Plugin {
// Store for exported strings
var $export_strings = array();
var $translate = TRUE;
......
......@@ -20,7 +20,7 @@
/**
* The base plugin to handle pager.
*/
class PagerPluginBase extends Plugin {
abstract class PagerPluginBase extends Plugin {
var $current_page = NULL;
var $total_items = 0;
......
......@@ -47,7 +47,7 @@
* plugin_id = "standard"
* )
*/
class RelationshipPluginBase extends Handler {
abstract class RelationshipPluginBase extends Handler {
/**
* Init handler to let relationships live on tables other than
* the table they operate on.
......
......@@ -24,7 +24,7 @@
* Default plugin to view a single row of a table. This is really just a wrapper around
* a theme function.
*/
class RowPluginBase extends Plugin {
abstract class RowPluginBase extends Plugin {
/**
* Initialize the row plugin.
*/
......
......@@ -28,7 +28,7 @@
* plugin_id = "standard"
* )
*/
class SortPluginBase extends Handler {
abstract class SortPluginBase extends Handler {
/**
* Determine if a sort can be exposed.
......
......@@ -28,7 +28,7 @@
/**
* Base class to define a style plugin handler.
*/
class StylePluginBase extends ViewsPlugin {
abstract class StylePluginBase extends ViewsPlugin {
/**
* Store all available tokens row rows.
*/
......
......@@ -49,7 +49,7 @@
* }
* )
*/
class Comment extends WizardBase {
class Comment extends WizardPluginBase {
protected function row_style_options($type) {
$options = array();
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Plugins\views\wizard;
use Drupal\views\Plugins\views\wizard\WizardBase;
use Drupal\views\Plugins\views\wizard\WizardPluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......@@ -28,7 +28,7 @@
* }
* )
*/
class File extends WizardBase {
class File extends WizardPluginBase {
protected function default_display_options($form, $form_state) {
$display_options = parent::default_display_options($form, $form_state);
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Plugins\views\wizard;
use Drupal\views\Plugins\views\wizard\WizardBase;
use Drupal\views\Plugins\views\wizard\WizardPluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......@@ -48,7 +48,7 @@
*
*/
class Node extends WizardBase {
class Node extends WizardPluginBase {
protected function row_style_options($type) {
$options = array();
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Plugins\views\wizard;
use Drupal\views\Plugins\views\wizard\WizardBase;
use Drupal\views\Plugins\views\wizard\WizardPluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......@@ -49,7 +49,7 @@
* }
* )
*/
class NodeRevision extends WizardBase {
class NodeRevision extends WizardPluginBase {
/**
* Node revisions do not support full posts or teasers, so remove them.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Plugins\views\wizard;
use Drupal\views\Plugins\views\wizard\WizardBase;
use Drupal\views\Plugins\views\wizard\WizardPluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......@@ -32,7 +32,7 @@
* }
* )
*/
class TaxonomyTerm extends WizardBase {
class TaxonomyTerm extends WizardPluginBase {
protected function default_display_options($form, $form_state) {
$display_options = parent::default_display_options($form, $form_state);
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Plugins\views\wizard;
use Drupal\views\Plugins\views\wizard\WizardBase;
use Drupal\views\Plugins\views\wizard\WizardPluginBase;
use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
......@@ -43,7 +43,7 @@
* }
* )
*/
class Users extends WizardBase {
class Users extends WizardPluginBase {
protected function default_display_options($form, $form_state) {
$display_options = parent::default_display_options($form, $form_state);
......
......@@ -13,7 +13,7 @@
/**
* A very generic Views Wizard class - can be constructed for any base table.
*/
class WizardBase implements WizardInterface {
abstract class WizardPluginBase implements WizardInterface {
protected $base_table;
protected $entity_type;
protected $entity_info = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment