Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
08173e8c
Commit
08173e8c
authored
Jun 17, 2012
by
amateescu
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Issue
#1642144
by dawehner, amateescu: Convert views_object() to
PSR-0
.
parent
db36c7bc
Changes
5
Hide whitespace changes
Inline
Side-by-side
includes/handlers.inc
View file @
08173e8c
...
...
@@ -8,6 +8,7 @@
use
Drupal\Core\Database\Database
;
use
Drupal\views\View
;
use
Drupal\views\Join
;
use
Drupal\views\ViewsObject
;
/**
* Instantiate and construct a new handler
...
...
@@ -134,8 +135,6 @@ function views_get_table_join($table, $base_table) {
* It creates a common interface to create consistency amongst
* handlers and data.
*
* This class would be abstract in PHP5, but PHP4 doesn't understand that.
*
* Definition terms:
* - table: The actual table this uses; only specify if different from
* the table this is attached to.
...
...
@@ -155,7 +154,7 @@ function views_get_table_join($table, $base_table) {
* control is provided.
* - access arguments: An array of arguments for the access callback.
*/
class
views_handler
extends
v
iews
_o
bject
{
abstract
class
views_handler
extends
V
iews
O
bject
{
/**
* The top object of a view.
*
...
...
includes/plugins.inc
View file @
08173e8c
...
...
@@ -5,8 +5,7 @@
* Built in plugins for Views output handling.
*/
// @todo: Remove this once update.php can use the registry
views_include
(
'base'
);
use
Drupal\views\ViewsObject
;
/**
* Implements hook_views_plugins().
...
...
@@ -467,7 +466,7 @@ function views_discover_plugins() {
/**
* Abstract base class to provide interface common to all plugins.
*/
class
views_plugin
extends
v
iews
_o
bject
{
abstract
class
views_plugin
extends
V
iews
O
bject
{
/**
* The top object of a view.
*
...
...
includes/base.inc
→
lib/Drupal/views/ViewsObject.php
View file @
08173e8c
...
...
@@ -2,13 +2,15 @@
/**
* @file
*
Provides the basic object definitions used by plugins and handlers.
*
Definition of Drupal\views\ViewsObject;
*/
namespace
Drupal\views
;
/**
*
Basic definition for many views object
s.
*
Provides the basic object definitions used by plugins and handler
s.
*/
class
v
iews
_o
bject
{
class
V
iews
O
bject
{
/**
* Except for displays, options for the object will be held here.
*/
...
...
@@ -48,8 +50,8 @@ class views_object {
* @return array
* Returns the options of this handler/plugin.
*
* @see
views_o
bject::export_option()
* @see
views_o
bject::unpack_translatable()
* @see
Drupal\views\ViewsO
bject::export_option()
* @see
Drupal\views\ViewsO
bject::unpack_translatable()
*/
function
option_definition
()
{
return
array
();
}
...
...
views.info
View file @
08173e8c
...
...
@@ -56,7 +56,6 @@ files[] = handlers/views_handler_sort_group_by_numeric.inc
files
[]
=
handlers
/
views_handler_sort_menu_hierarchy
.
inc
files
[]
=
handlers
/
views_handler_sort_random
.
inc
;
Includes
files
[]
=
includes
/
base
.
inc
files
[]
=
includes
/
handlers
.
inc
files
[]
=
includes
/
plugins
.
inc
;
Modules
...
...
views.module
View file @
08173e8c
...
...
@@ -1108,7 +1108,6 @@ function views_include_handlers($reset = FALSE) {
return
;
}
views_include
(
'base'
);
views_include
(
'handlers'
);
views_include
(
'cache'
);
views_include
(
'plugins'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment