Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
301
Merge Requests
301
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
be280193
Commit
be280193
authored
Jul 28, 2012
by
dawehner
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved aggregator,book,comment
parent
684b4a03
Changes
157
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
157 changed files
with
415 additions
and
7246 deletions
+415
-7246
lib/Drupal/aggregator/Plugin/views/argument/CategoryCid.php
lib/Drupal/aggregator/Plugin/views/argument/CategoryCid.php
+10
-1
lib/Drupal/aggregator/Plugin/views/argument/Fid.php
lib/Drupal/aggregator/Plugin/views/argument/Fid.php
+10
-1
lib/Drupal/aggregator/Plugin/views/argument/Iid.php
lib/Drupal/aggregator/Plugin/views/argument/Iid.php
+9
-0
lib/Drupal/aggregator/Plugin/views/argument/views_handler_argument_aggregator_iid.inc
.../views/argument/views_handler_argument_aggregator_iid.inc
+0
-32
lib/Drupal/aggregator/Plugin/views/field/Category.php
lib/Drupal/aggregator/Plugin/views/field/Category.php
+10
-1
lib/Drupal/aggregator/Plugin/views/field/TitleLink.php
lib/Drupal/aggregator/Plugin/views/field/TitleLink.php
+10
-1
lib/Drupal/aggregator/Plugin/views/field/Xss.php
lib/Drupal/aggregator/Plugin/views/field/Xss.php
+10
-1
lib/Drupal/aggregator/Plugin/views/field/views_handler_field_aggregator_category.inc
...n/views/field/views_handler_field_aggregator_category.inc
+0
-62
lib/Drupal/aggregator/Plugin/views/field/views_handler_field_aggregator_xss.inc
...Plugin/views/field/views_handler_field_aggregator_xss.inc
+0
-20
lib/Drupal/aggregator/Plugin/views/filter/CategoryCid.php
lib/Drupal/aggregator/Plugin/views/filter/CategoryCid.php
+10
-1
lib/Drupal/aggregator/Plugin/views/filter/views_handler_filter_aggregator_category_cid.inc
...s/filter/views_handler_filter_aggregator_category_cid.inc
+0
-28
lib/Drupal/aggregator/Plugin/views/row/Rss.php
lib/Drupal/aggregator/Plugin/views/row/Rss.php
+15
-1
lib/Drupal/book/Plugin/views/argument_default/Root.php
lib/Drupal/book/Plugin/views/argument_default/Root.php
+13
-2
lib/Drupal/comment/Plugin/views/argument/UserUid.php
lib/Drupal/comment/Plugin/views/argument/UserUid.php
+12
-1
lib/Drupal/comment/Plugin/views/argument/views_handler_argument_comment_user_uid.inc
...iews/argument/views_handler_argument_comment_user_uid.inc
+0
-61
lib/Drupal/comment/Plugin/views/field/Comment.php
lib/Drupal/comment/Plugin/views/field/Comment.php
+10
-1
lib/Drupal/comment/Plugin/views/field/Depth.php
lib/Drupal/comment/Plugin/views/field/Depth.php
+12
-1
lib/Drupal/comment/Plugin/views/field/LInkDelete.php
lib/Drupal/comment/Plugin/views/field/LInkDelete.php
+11
-1
lib/Drupal/comment/Plugin/views/field/LastTimestamp.php
lib/Drupal/comment/Plugin/views/field/LastTimestamp.php
+12
-1
lib/Drupal/comment/Plugin/views/field/Link.php
lib/Drupal/comment/Plugin/views/field/Link.php
+11
-1
lib/Drupal/comment/Plugin/views/field/LinkApprove.php
lib/Drupal/comment/Plugin/views/field/LinkApprove.php
+11
-1
lib/Drupal/comment/Plugin/views/field/LinkEdit.php
lib/Drupal/comment/Plugin/views/field/LinkEdit.php
+11
-1
lib/Drupal/comment/Plugin/views/field/LinkReply.php
lib/Drupal/comment/Plugin/views/field/LinkReply.php
+11
-1
lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php
lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php
+11
-1
lib/Drupal/comment/Plugin/views/field/NcsLastUpdated.php
lib/Drupal/comment/Plugin/views/field/NcsLastUpdated.php
+13
-1
lib/Drupal/comment/Plugin/views/field/NodeComment.php
lib/Drupal/comment/Plugin/views/field/NodeComment.php
+10
-1
lib/Drupal/comment/Plugin/views/field/NodeLink.php
lib/Drupal/comment/Plugin/views/field/NodeLink.php
+12
-1
lib/Drupal/comment/Plugin/views/field/NodeNewComments.php
lib/Drupal/comment/Plugin/views/field/NodeNewComments.php
+10
-1
lib/Drupal/comment/Plugin/views/field/Username.php
lib/Drupal/comment/Plugin/views/field/Username.php
+12
-1
lib/Drupal/comment/Plugin/views/field/views_handler_field_comment.inc
...omment/Plugin/views/field/views_handler_field_comment.inc
+0
-75
lib/Drupal/comment/Plugin/views/field/views_handler_field_comment_depth.inc
.../Plugin/views/field/views_handler_field_comment_depth.inc
+0
-21
lib/Drupal/comment/Plugin/views/field/views_handler_field_comment_link.inc
...t/Plugin/views/field/views_handler_field_comment_link.inc
+0
-69
lib/Drupal/comment/Plugin/views/field/views_handler_field_comment_link_approve.inc
.../views/field/views_handler_field_comment_link_approve.inc
+0
-36
lib/Drupal/comment/Plugin/views/field/views_handler_field_comment_link_delete.inc
...n/views/field/views_handler_field_comment_link_delete.inc
+0
-29
lib/Drupal/comment/Plugin/views/field/views_handler_field_comment_link_reply.inc
...in/views/field/views_handler_field_comment_link_reply.inc
+0
-29
lib/Drupal/comment/Plugin/views/field/views_handler_field_last_comment_timestamp.inc
...iews/field/views_handler_field_last_comment_timestamp.inc
+0
-28
lib/Drupal/comment/Plugin/views/field/views_handler_field_ncs_last_comment_name.inc
...views/field/views_handler_field_ncs_last_comment_name.inc
+0
-56
lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php
lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php
+11
-1
lib/Drupal/comment/Plugin/views/filter/NodeComment.php
lib/Drupal/comment/Plugin/views/filter/NodeComment.php
+10
-1
lib/Drupal/comment/Plugin/views/filter/UserUid.php
lib/Drupal/comment/Plugin/views/filter/UserUid.php
+12
-1
lib/Drupal/comment/Plugin/views/row/Rss.php
lib/Drupal/comment/Plugin/views/row/Rss.php
+16
-1
lib/Drupal/comment/Plugin/views/row/View.php
lib/Drupal/comment/Plugin/views/row/View.php
+16
-1
lib/Drupal/comment/Plugin/views/sort/NcsLastCommentName.php
lib/Drupal/comment/Plugin/views/sort/NcsLastCommentName.php
+3
-1
lib/Drupal/comment/Plugin/views/sort/NcsLastUpdated.php
lib/Drupal/comment/Plugin/views/sort/NcsLastUpdated.php
+10
-2
lib/Drupal/comment/Plugin/views/sort/Thread.php
lib/Drupal/comment/Plugin/views/sort/Thread.php
+3
-2
lib/Drupal/comment/Plugin/views/sort/views_handler_sort_ncs_last_comment_name.inc
...n/views/sort/views_handler_sort_ncs_last_comment_name.inc
+0
-40
lib/Drupal/node/Plugin/views/argument/views_handler_argument_node_nid.inc
...Plugin/views/argument/views_handler_argument_node_nid.inc
+3
-3
lib/Drupal/node/Plugin/views/argument/views_handler_argument_node_uid_revision.inc
...ews/argument/views_handler_argument_node_uid_revision.inc
+1
-1
lib/Drupal/node/Plugin/views/argument/views_handler_argument_node_vid.inc
...Plugin/views/argument/views_handler_argument_node_vid.inc
+13
-3
lib/Drupal/search/Plugin/views/filter/views_handler_filter_search.inc
...earch/Plugin/views/filter/views_handler_filter_search.inc
+1
-1
lib/Drupal/taxonomy/Plugin/views/field/views_handler_field_term_node_tid.inc
.../Plugin/views/field/views_handler_field_term_node_tid.inc
+3
-3
lib/Drupal/user/Plugin/views/argument/views_handler_argument_user_uid.inc
...Plugin/views/argument/views_handler_argument_user_uid.inc
+3
-3
lib/Drupal/user/Plugin/views/filter/views_handler_filter_user_name.inc
...er/Plugin/views/filter/views_handler_filter_user_name.inc
+14
-2
modules/aggregator.views.inc
modules/aggregator.views.inc
+9
-51
modules/aggregator/views_handler_argument_aggregator_category_cid.inc
...egator/views_handler_argument_aggregator_category_cid.inc
+0
-28
modules/aggregator/views_handler_argument_aggregator_fid.inc
modules/aggregator/views_handler_argument_aggregator_fid.inc
+0
-28
modules/aggregator/views_handler_field_aggregator_title_link.inc
.../aggregator/views_handler_field_aggregator_title_link.inc
+0
-57
modules/book.views.inc
modules/book.views.inc
+0
-15
modules/comment.views.inc
modules/comment.views.inc
+21
-54
modules/comment/views_handler_field_comment_link_edit.inc
modules/comment/views_handler_field_comment_link_edit.inc
+0
-52
modules/comment/views_handler_field_comment_node_link.inc
modules/comment/views_handler_field_comment_node_link.inc
+0
-64
modules/comment/views_handler_field_comment_username.inc
modules/comment/views_handler_field_comment_username.inc
+0
-58
modules/comment/views_handler_field_ncs_last_updated.inc
modules/comment/views_handler_field_ncs_last_updated.inc
+0
-18
modules/comment/views_handler_field_node_comment.inc
modules/comment/views_handler_field_node_comment.inc
+0
-28
modules/comment/views_handler_field_node_new_comments.inc
modules/comment/views_handler_field_node_new_comments.inc
+0
-118
modules/comment/views_handler_filter_comment_user_uid.inc
modules/comment/views_handler_filter_comment_user_uid.inc
+0
-29
modules/comment/views_handler_filter_ncs_last_updated.inc
modules/comment/views_handler_filter_ncs_last_updated.inc
+0
-27
modules/comment/views_handler_filter_node_comment.inc
modules/comment/views_handler_filter_node_comment.inc
+0
-23
modules/comment/views_handler_sort_comment_thread.inc
modules/comment/views_handler_sort_comment_thread.inc
+0
-38
modules/comment/views_handler_sort_ncs_last_updated.inc
modules/comment/views_handler_sort_ncs_last_updated.inc
+0
-22
modules/contact/views_handler_field_contact_link.inc
modules/contact/views_handler_field_contact_link.inc
+0
-57
modules/field/views_handler_argument_field_list.inc
modules/field/views_handler_argument_field_list.inc
+0
-64
modules/field/views_handler_argument_field_list_string.inc
modules/field/views_handler_argument_field_list_string.inc
+0
-66
modules/field/views_handler_field_field.inc
modules/field/views_handler_field_field.inc
+0
-939
modules/field/views_handler_filter_field_list.inc
modules/field/views_handler_filter_field_list.inc
+0
-20
modules/field/views_handler_relationship_entity_reverse.inc
modules/field/views_handler_relationship_entity_reverse.inc
+0
-87
modules/filter/views_handler_field_filter_format_name.inc
modules/filter/views_handler_field_filter_format_name.inc
+0
-36
modules/locale/views_handler_argument_locale_group.inc
modules/locale/views_handler_argument_locale_group.inc
+0
-40
modules/locale/views_handler_argument_locale_language.inc
modules/locale/views_handler_argument_locale_language.inc
+0
-38
modules/locale/views_handler_field_locale_group.inc
modules/locale/views_handler_field_locale_group.inc
+0
-21
modules/locale/views_handler_field_locale_language.inc
modules/locale/views_handler_field_locale_language.inc
+0
-36
modules/locale/views_handler_field_locale_link_edit.inc
modules/locale/views_handler_field_locale_link_edit.inc
+0
-60
modules/locale/views_handler_field_node_language.inc
modules/locale/views_handler_field_node_language.inc
+0
-37
modules/locale/views_handler_filter_locale_group.inc
modules/locale/views_handler_filter_locale_group.inc
+0
-25
modules/locale/views_handler_filter_locale_language.inc
modules/locale/views_handler_filter_locale_language.inc
+0
-28
modules/locale/views_handler_filter_locale_version.inc
modules/locale/views_handler_filter_locale_version.inc
+0
-30
modules/locale/views_handler_filter_node_language.inc
modules/locale/views_handler_filter_node_language.inc
+0
-28
modules/node/views_handler_argument_dates_various.inc
modules/node/views_handler_argument_dates_various.inc
+0
-178
modules/node/views_handler_argument_node_language.inc
modules/node/views_handler_argument_node_language.inc
+0
-36
modules/node/views_handler_argument_node_nid.inc
modules/node/views_handler_argument_node_nid.inc
+0
-24
modules/node/views_handler_argument_node_type.inc
modules/node/views_handler_argument_node_type.inc
+0
-39
modules/node/views_handler_argument_node_uid_revision.inc
modules/node/views_handler_argument_node_uid_revision.inc
+0
-18
modules/node/views_handler_argument_node_vid.inc
modules/node/views_handler_argument_node_vid.inc
+0
-36
modules/node/views_handler_field_history_user_timestamp.inc
modules/node/views_handler_field_history_user_timestamp.inc
+0
-83
modules/node/views_handler_field_node.inc
modules/node/views_handler_field_node.inc
+0
-82
modules/node/views_handler_field_node_link.inc
modules/node/views_handler_field_node_link.inc
+0
-48
modules/node/views_handler_field_node_link_delete.inc
modules/node/views_handler_field_node_link_delete.inc
+0
-31
modules/node/views_handler_field_node_link_edit.inc
modules/node/views_handler_field_node_link_edit.inc
+0
-31
modules/node/views_handler_field_node_path.inc
modules/node/views_handler_field_node_path.inc
+0
-47
modules/node/views_handler_field_node_revision.inc
modules/node/views_handler_field_node_revision.inc
+0
-71
modules/node/views_handler_field_node_revision_link.inc
modules/node/views_handler_field_node_revision_link.inc
+0
-66
modules/node/views_handler_field_node_revision_link_delete.inc
...es/node/views_handler_field_node_revision_link_delete.inc
+0
-36
modules/node/views_handler_field_node_revision_link_revert.inc
...es/node/views_handler_field_node_revision_link_revert.inc
+0
-36
modules/node/views_handler_field_node_type.inc
modules/node/views_handler_field_node_type.inc
+0
-49
modules/node/views_handler_filter_history_user_timestamp.inc
modules/node/views_handler_filter_history_user_timestamp.inc
+0
-89
modules/node/views_handler_filter_node_access.inc
modules/node/views_handler_filter_node_access.inc
+0
-43
modules/node/views_handler_filter_node_type.inc
modules/node/views_handler_filter_node_type.inc
+0
-28
modules/node/views_handler_filter_node_uid_revision.inc
modules/node/views_handler_filter_node_uid_revision.inc
+0
-25
modules/search/views_handler_argument_search.inc
modules/search/views_handler_argument_search.inc
+0
-103
modules/search/views_handler_field_search_score.inc
modules/search/views_handler_field_search_score.inc
+0
-83
modules/search/views_handler_filter_search.inc
modules/search/views_handler_filter_search.inc
+0
-220
modules/search/views_handler_sort_search_score.inc
modules/search/views_handler_sort_search_score.inc
+0
-41
modules/statistics/views_handler_field_accesslog_path.inc
modules/statistics/views_handler_field_accesslog_path.inc
+0
-60
modules/system/views_handler_argument_file_fid.inc
modules/system/views_handler_argument_file_fid.inc
+0
-28
modules/system/views_handler_field_file.inc
modules/system/views_handler_field_file.inc
+0
-61
modules/system/views_handler_field_file_extension.inc
modules/system/views_handler_field_file_extension.inc
+0
-19
modules/system/views_handler_field_file_filemime.inc
modules/system/views_handler_field_file_filemime.inc
+0
-38
modules/system/views_handler_field_file_status.inc
modules/system/views_handler_field_file_status.inc
+0
-18
modules/system/views_handler_field_file_uri.inc
modules/system/views_handler_field_file_uri.inc
+0
-35
modules/system/views_handler_filter_file_status.inc
modules/system/views_handler_filter_file_status.inc
+0
-19
modules/system/views_handler_filter_system_type.inc
modules/system/views_handler_filter_system_type.inc
+0
-21
modules/taxonomy/views_handler_argument_taxonomy.inc
modules/taxonomy/views_handler_argument_taxonomy.inc
+0
-29
modules/taxonomy/views_handler_argument_term_node_tid.inc
modules/taxonomy/views_handler_argument_term_node_tid.inc
+0
-49
modules/taxonomy/views_handler_argument_term_node_tid_depth.inc
...s/taxonomy/views_handler_argument_term_node_tid_depth.inc
+0
-149
modules/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc
...y/views_handler_argument_term_node_tid_depth_modifier.inc
+0
-64
modules/taxonomy/views_handler_argument_vocabulary_machine_name.inc
...xonomy/views_handler_argument_vocabulary_machine_name.inc
+0
-28
modules/taxonomy/views_handler_argument_vocabulary_vid.inc
modules/taxonomy/views_handler_argument_vocabulary_vid.inc
+0
-28
modules/taxonomy/views_handler_field_taxonomy.inc
modules/taxonomy/views_handler_field_taxonomy.inc
+0
-86
modules/taxonomy/views_handler_field_term_link_edit.inc
modules/taxonomy/views_handler_field_term_link_edit.inc
+0
-60
modules/taxonomy/views_handler_field_term_node_tid.inc
modules/taxonomy/views_handler_field_term_node_tid.inc
+0
-148
modules/taxonomy/views_handler_filter_term_node_tid.inc
modules/taxonomy/views_handler_filter_term_node_tid.inc
+0
-364
modules/taxonomy/views_handler_filter_term_node_tid_depth.inc
...les/taxonomy/views_handler_filter_term_node_tid_depth.inc
+0
-100
modules/taxonomy/views_handler_filter_vocabulary_machine_name.inc
...taxonomy/views_handler_filter_vocabulary_machine_name.inc
+0
-25
modules/taxonomy/views_handler_filter_vocabulary_vid.inc
modules/taxonomy/views_handler_filter_vocabulary_vid.inc
+0
-25
modules/taxonomy/views_handler_relationship_node_term_data.inc
...es/taxonomy/views_handler_relationship_node_term_data.inc
+0
-98
modules/translation/views_handler_argument_node_tnid.inc
modules/translation/views_handler_argument_node_tnid.inc
+0
-26
modules/translation/views_handler_field_node_link_translate.inc
...s/translation/views_handler_field_node_link_translate.inc
+0
-29
modules/translation/views_handler_field_node_translation_link.inc
...translation/views_handler_field_node_translation_link.inc
+0
-49
modules/translation/views_handler_filter_node_tnid.inc
modules/translation/views_handler_filter_node_tnid.inc
+0
-45
modules/translation/views_handler_filter_node_tnid_child.inc
modules/translation/views_handler_filter_node_tnid_child.inc
+0
-22
modules/translation/views_handler_relationship_translation.inc
...es/translation/views_handler_relationship_translation.inc
+0
-106
modules/user/views_handler_argument_user_uid.inc
modules/user/views_handler_argument_user_uid.inc
+0
-35
modules/user/views_handler_argument_users_roles_rid.inc
modules/user/views_handler_argument_users_roles_rid.inc
+0
-25
modules/user/views_handler_field_user.inc
modules/user/views_handler_field_user.inc
+0
-55
modules/user/views_handler_field_user_language.inc
modules/user/views_handler_field_user_language.inc
+0
-39
modules/user/views_handler_field_user_link.inc
modules/user/views_handler_field_user_link.inc
+0
-58
modules/user/views_handler_field_user_link_cancel.inc
modules/user/views_handler_field_user_link_cancel.inc
+0
-33
modules/user/views_handler_field_user_link_edit.inc
modules/user/views_handler_field_user_link_edit.inc
+0
-30
modules/user/views_handler_field_user_mail.inc
modules/user/views_handler_field_user_mail.inc
+0
-44
modules/user/views_handler_field_user_name.inc
modules/user/views_handler_field_user_name.inc
+0
-85
modules/user/views_handler_field_user_permissions.inc
modules/user/views_handler_field_user_permissions.inc
+0
-68
modules/user/views_handler_field_user_picture.inc
modules/user/views_handler_field_user_picture.inc
+0
-116
modules/user/views_handler_field_user_roles.inc
modules/user/views_handler_field_user_roles.inc
+0
-59
modules/user/views_handler_filter_user_current.inc
modules/user/views_handler_filter_user_current.inc
+0
-38
modules/user/views_handler_filter_user_name.inc
modules/user/views_handler_filter_user_name.inc
+0
-164
modules/user/views_handler_filter_user_permissions.inc
modules/user/views_handler_filter_user_permissions.inc
+0
-37
modules/user/views_handler_filter_user_roles.inc
modules/user/views_handler_filter_user_roles.inc
+0
-30
No files found.
lib/Drupal/aggregator/Plugin/views/argument/
views_handler_argument_aggregator_category_cid.inc
→
lib/Drupal/aggregator/Plugin/views/argument/
CategoryCid.php
View file @
be280193
...
...
@@ -5,14 +5,23 @@
* Definition of views_handler_argument_aggregator_category_cid.
*/
namespace
Drupal\aggregator\Plugin\views\argument
;
use
Drupal\views\Plugins\views\argument\Numeric
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler to accept an aggregator category id.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_aggregator_category_cid
extends
Numeric
{
/**
* @Plugin(
* plugin_id = "aggregator_category_cid"
* )
*/
class
CategoryCid
extends
Numeric
{
/**
* Override the behavior of title(). Get the title of the category.
*/
...
...
lib/Drupal/aggregator/Plugin/views/argument/
views_handler_argument_aggregator_fid.inc
→
lib/Drupal/aggregator/Plugin/views/argument/
Fid.php
View file @
be280193
...
...
@@ -5,14 +5,23 @@
* Definition of views_handler_argument_aggregator_fid.
*/
namespace
Drupal\aggregator\Plugin\views\argument
;
use
Drupal\views\Plugins\views\argument\Numeric
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler to accept an aggregator feed id.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_aggregator_fid
extends
Numeric
{
/**
* @Plugin(
* plugin_id = "aggregator_fid"
* )
*/
class
Fid
extends
Numeric
{
/**
* Override the behavior of title(). Get the title of the feed.
*/
...
...
modules/aggregator/views_handler_argument_aggregator_iid.inc
→
lib/Drupal/aggregator/Plugin/views/argument/Iid.php
View file @
be280193
...
...
@@ -5,13 +5,22 @@
* Definition of views_handler_argument_aggregator_iid.
*/
namespace
Drupal\aggregator\Plugin\views\argument
;
use
Drupal\views\Plugins\views\argument\Numeric
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler to accept an aggregator item id.
*
* @ingroup views_argument_handlers
*/
/**
* @Plugin(
* plugin_id = "aggregator_iid"
* )
*/
class
views_handler_argument_aggregator_iid
extends
Numeric
{
/**
* Override the behavior of title(). Get the title of the category.
...
...
lib/Drupal/aggregator/Plugin/views/argument/views_handler_argument_aggregator_iid.inc
deleted
100644 → 0
View file @
684b4a03
<?php
/**
* @file
* Definition of views_handler_argument_aggregator_iid.
*/
use
Drupal\views\Plugins\views\argument\Numeric
;
/**
* Argument handler to accept an aggregator item id.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_aggregator_iid
extends
Numeric
{
/**
* Override the behavior of title(). Get the title of the category.
*/
function
title_query
()
{
$titles
=
array
();
$placeholders
=
implode
(
', '
,
array_fill
(
0
,
sizeof
(
$this
->
value
),
'%d'
));
$result
=
db_select
(
'aggregator_item'
)
->
condition
(
'iid'
,
$this
->
value
,
'IN'
)
->
fields
(
array
(
'title'
))
->
execute
();
foreach
(
$result
as
$term
)
{
$titles
[]
=
check_plain
(
$term
->
title
);
}
return
$titles
;
}
}
modules/aggregator/views_handler_field_aggregator_category.inc
→
lib/Drupal/aggregator/Plugin/views/field/Category.php
View file @
be280193
...
...
@@ -5,7 +5,10 @@
* Definition of views_handler_field_aggregator_category.
*/
namespace
Drupal\aggregator\Plugin\views\field
;
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to provide simple renderer that allows linking to aggregator
...
...
@@ -13,7 +16,13 @@
*
* @ingroup views_field_handlers
*/
class
views_handler_field_aggregator_category
extends
FieldPluginBase
{
/**
* @Plugin(
* plugin_id = "aggregator_category"
* )
*/
class
Category
extends
FieldPluginBase
{
/**
* Constructor to provide additional field to add.
*/
...
...
lib/Drupal/aggregator/Plugin/views/field/
views_handler_field_aggregator_title_link.inc
→
lib/Drupal/aggregator/Plugin/views/field/
TitleLink.php
View file @
be280193
...
...
@@ -5,7 +5,10 @@
* Definition of views_handler_field_aggregator_title_link.
*/
namespace
Drupal\aggregator\Plugin\views\field
;
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler that turns an item's title into a clickable link to the original
...
...
@@ -13,7 +16,13 @@
*
* @ingroup views_field_handlers
*/
class
views_handler_field_aggregator_title_link
extends
FieldPluginBase
{
/**
* @Plugin(
* plugin_id = "aggregator_title_link"
* )
*/
class
TitleLink
extends
FieldPluginBase
{
function
construct
()
{
parent
::
construct
();
$this
->
additional_fields
[
'link'
]
=
'link'
;
...
...
modules/aggregator/views_handler_field_aggregator_xss.inc
→
lib/Drupal/aggregator/Plugin/views/field/Xss.php
View file @
be280193
...
...
@@ -5,14 +5,23 @@
* Definition of views_handler_field_aggregator_xss.
*/
namespace
Drupal\aggregator\Plugin\views\field
;
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Filters htmls tags from item.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_aggregator_xss
extends
FieldPluginBase
{
/**
* @Plugin(
* plugin_id = "aggregator_xss"
* )
*/
class
Xss
extends
FieldPluginBase
{
function
render
(
$values
)
{
$value
=
$this
->
get_value
(
$values
);
return
aggregator_filter_xss
(
$value
);
...
...
lib/Drupal/aggregator/Plugin/views/field/views_handler_field_aggregator_category.inc
deleted
100644 → 0
View file @
684b4a03
<?php
/**
* @file
* Definition of views_handler_field_aggregator_category.
*/
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
/**
* Field handler to provide simple renderer that allows linking to aggregator
* category.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_aggregator_category
extends
FieldPluginBase
{
/**
* Constructor to provide additional field to add.
*/
function
construct
()
{
parent
::
construct
();
$this
->
additional_fields
[
'cid'
]
=
'cid'
;
}
function
option_definition
()
{
$options
=
parent
::
option_definition
();
$options
[
'link_to_category'
]
=
array
(
'default'
=>
FALSE
,
'bool'
=>
TRUE
);
return
$options
;
}
/**
* Provide link to category option
*/
function
options_form
(
&
$form
,
&
$form_state
)
{
$form
[
'link_to_category'
]
=
array
(
'#title'
=>
t
(
'Link this field to its aggregator category page'
),
'#description'
=>
t
(
'This will override any other link you have set.'
),
'#type'
=>
'checkbox'
,
'#default_value'
=>
!
empty
(
$this
->
options
[
'link_to_category'
]),
);
parent
::
options_form
(
$form
,
$form_state
);
}
/**
* Render whatever the data is as a link to the category.
*
* Data should be made XSS safe prior to calling this function.
*/
function
render_link
(
$data
,
$values
)
{
$cid
=
$this
->
get_value
(
$values
,
'cid'
);
if
(
!
empty
(
$this
->
options
[
'link_to_category'
])
&&
!
empty
(
$cid
)
&&
$data
!==
NULL
&&
$data
!==
''
)
{
$this
->
options
[
'alter'
][
'make_link'
]
=
TRUE
;
$this
->
options
[
'alter'
][
'path'
]
=
"aggregator/category/
$cid
"
;
}
return
$data
;
}
function
render
(
$values
)
{
$value
=
$this
->
get_value
(
$values
);
return
$this
->
render_link
(
$this
->
sanitize_value
(
$value
),
$values
);
}
}
lib/Drupal/aggregator/Plugin/views/field/views_handler_field_aggregator_xss.inc
deleted
100644 → 0
View file @
684b4a03
<?php
/**
* @file
* Definition of views_handler_field_aggregator_xss.
*/
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
/**
* Filters htmls tags from item.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_aggregator_xss
extends
FieldPluginBase
{
function
render
(
$values
)
{
$value
=
$this
->
get_value
(
$values
);
return
aggregator_filter_xss
(
$value
);
}
}
modules/aggregator/views_handler_filter_aggregator_category_cid.inc
→
lib/Drupal/aggregator/Plugin/views/filter/CategoryCid.php
View file @
be280193
...
...
@@ -5,14 +5,23 @@
* Definition of views_handler_filter_aggregator_category_cid.
*/
namespace
Drupal\aggregator\Plugin\views\filter
;
use
Drupal\views\Plugins\views\filter\InOperator
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Filter by aggregator category cid
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_aggregator_category_cid
extends
InOperator
{
/**
* @Plugin(
* plugin_id = "aggregator_category_cid"
* )
*/
class
CategoryCid
extends
InOperator
{
function
get_value_options
()
{
if
(
isset
(
$this
->
value_options
))
{
return
;
...
...
lib/Drupal/aggregator/Plugin/views/filter/views_handler_filter_aggregator_category_cid.inc
deleted
100644 → 0
View file @
684b4a03
<?php
/**
* @file
* Definition of views_handler_filter_aggregator_category_cid.
*/
use
Drupal\views\Plugins\views\filter\InOperator
;
/**
* Filter by aggregator category cid
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_aggregator_category_cid
extends
InOperator
{
function
get_value_options
()
{
if
(
isset
(
$this
->
value_options
))
{
return
;
}
$this
->
value_options
=
array
();
$result
=
db_query
(
'SELECT * FROM {aggregator_category} ORDER BY title'
);
foreach
(
$result
as
$category
)
{
$this
->
value_options
[
$category
->
cid
]
=
$category
->
title
;
}
}
}
lib/Drupal/aggregator/Plugin/views/row/
views_plugin_row_aggregator_rss.inc
→
lib/Drupal/aggregator/Plugin/views/row/
Rss.php
View file @
be280193
...
...
@@ -5,12 +5,26 @@
* Contains the Aggregator Item RSS row style plugin.
*/
namespace
Drupal\aggregator\Plugin\views\row
;
use
Drupal\views\Plugins\views\row\RowPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\Core\Annotation\Translation
;
/**
* Plugin which loads an aggregator item and formats it as an RSS item.
*
* @Plugin(
* plugin_id = "aggregator_rss",
* theme = "views_view_row_rss",
* title = @Translation("Aggregator item"),
* help = @Translation("Display the aggregator item using the data from the original source."),
* uses_options = TRUE,
* type = "feed",
* help_topic = "style-aggregator-rss"
* )
*/
class
views_plugin_row_aggregator_r
ss
extends
RowPluginBase
{
class
R
ss
extends
RowPluginBase
{
var
$base_table
=
'aggregator_item'
;
var
$base_field
=
'iid'
;
...
...
lib/Drupal/book/Plugin/views/argument_default/
views_plugin_argument_default_book_root.inc
→
lib/Drupal/book/Plugin/views/argument_default/
Root.php
View file @
be280193
...
...
@@ -4,12 +4,23 @@
* Contains the book root from current node argument default plugin.
*/
use
Drupal\views\Plugins\views\argument_default
\
Node
;
namespace
Drupal\book\Plugin\views\argument_default
;
use
Views\node\Plugin\views\argument_default
\
Node
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\Core\Annotation\Translation
;
/**
* Default argument plugin to get the current node's book root.
*/
class
views_plugin_argument_default_book_root
extends
Node
{
/**
* @Plugin(
* plugin_id = "book_root",
* title = @Translation("Book root from current node")
* )
*/
class
Root
extends
Node
{
function
get_argument
()
{
// Use the argument_default_node plugin to get the nid argument.
$nid
=
parent
::
get_argument
();
...
...
modules/comment/views_handler_argument_comment_user_uid.inc
→
lib/Drupal/comment/Plugin/views/argument/UserUid.php
View file @
be280193
...
...
@@ -5,13 +5,24 @@
* Definition of views_handler_argument_comment_user_uid.
*/
namespace
Drupal\comment\Plugin\views\argument
;
use
Drupal\views\Plugins\views\argument\ArgumentPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Argument handler to accept a user id to check for nodes that
* user posted or commented on.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_comment_user_uid
extends
views_handler_argument
{
/**
* @Plugin(
* plugin_id = "argument_comment_user_uid"
* )
*/
class
UserUid
extends
ArgumentPluginBase
{
function
title
()
{
if
(
!
$this
->
argument
)
{
$title
=
variable_get
(
'anonymous'
,
t
(
'Anonymous'
));
...
...
lib/Drupal/comment/Plugin/views/argument/views_handler_argument_comment_user_uid.inc
deleted
100644 → 0
View file @
684b4a03
<?php
/**
* @file
* Definition of views_handler_argument_comment_user_uid.
*/
/**
* Argument handler to accept a user id to check for nodes that
* user posted or commented on.
*
* @ingroup views_argument_handlers
*/
class
views_handler_argument_comment_user_uid
extends
views_handler_argument
{
function
title
()
{
if
(
!
$this
->
argument
)
{
$title
=
variable_get
(
'anonymous'
,
t
(
'Anonymous'
));
}
else
{
$title
=
db_query
(
'SELECT u.name FROM {users} u WHERE u.uid = :uid'
,
array
(
':uid'
=>
$this
->
argument
))
->
fetchField
();
}
if
(
empty
(
$title
))
{
return
t
(
'No user'
);
}
return
check_plain
(
$title
);
}
function
default_actions
(
$which
=
NULL
)
{
// Disallow summary views on this argument.
if
(
!
$which
)
{
$actions
=
parent
::
default_actions
();
unset
(
$actions
[
'summary asc'
]);
unset
(
$actions
[
'summary desc'
]);
return
$actions
;
}
if
(
$which
!=
'summary asc'
&&
$which
!=
'summary desc'
)
{
return
parent
::
default_actions
(
$which
);
}
}
function
query
(
$group_by
=
FALSE
)
{
$this
->
ensure_my_table
();
$subselect
=
db_select
(
'comment'
,
'c'
);
$subselect
->
addField
(
'c'
,
'cid'
);
$subselect
->
condition
(
'c.uid'
,
$this
->
argument
);
$subselect
->
where
(
"c.nid =
$this->table_alias
.nid"
);
$condition
=
db_or
()
->
condition
(
"
$this->table_alias
.uid"
,
$this
->
argument
,
'='
)
->
exists
(
$subselect
);
$this
->
query
->
add_where
(
0
,
$condition
);
}
function
get_sort_name
()
{
return
t
(
'Numerical'
,
array
(),
array
(
'context'
=>
'Sort order'
));
}
}
modules/comment/views_handler_field_comment.inc
→
lib/Drupal/comment/Plugin/views/field/Comment.php
View file @
be280193
...
...
@@ -5,14 +5,23 @@
* Definition of views_handler_field_comment.
*/
namespace
Drupal\comment\Plugin\views\field
;
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to allow linking to a comment.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_comment
extends
FieldPluginBase
{
/**
* @Plugin(
* plugin_id = "comment"
* )
*/
class
Comment
extends
FieldPluginBase
{
/**
* Override init function to provide generic option to link to comment.
*/
...
...
modules/comment/views_handler_field_comment_depth.inc
→
lib/Drupal/comment/Plugin/views/field/Depth.php
View file @
be280193
...
...
@@ -5,12 +5,23 @@
* Definition of views_handler_field_comment_depth.
*/
namespace
Drupal\comment\Plugin\views\field
;
use
Drupal\Core\Annotation\Plugin
;
use
Drupal\views\Plugins\views\field\FieldPluginBase
;
/**
* Field handler to display the depth of a comment.
*
* @ingroup views_field_handlers
*/
class
views_handler_field_comment_depth
extends
views_handler_field
{
/**
* @Plugin(
* plugin_id = "comment_depth"
* )
*/
class
views_handler_field_comment_depth
extends
FieldPluginBase
{
/**
* Work out the depth of this comment
*/
...
...
modules/comment/views_handler_field_comment_link_delete.inc
→
lib/Drupal/comment/Plugin/views/field/LInkDelete.php
View file @
be280193
...
...
@@ -5,12 +5,22 @@
* Definition of views_handler_field_comment_link_delete.
*/
namespace
Drupal\comment\Plugin\views\field
;
use
Drupal\Core\Annotation\Plugin
;
/**
* Field handler to present a link to delete a node.
*