class views_content_cache_key_node_only in Views content cache 7.3
Same name and namespace in other branches
- 6.2 plugins/node_only.inc \views_content_cache_key_node_only
@file Provides the Views content cache node only plugin.
Hierarchy
- class \views_content_cache_key
Expanded class hierarchy of views_content_cache_key_node_only
1 string reference to 'views_content_cache_key_node_only'
- views_content_cache_views_content_cache_plugins in ./
views_content_cache.module - Implements hook_views_content_cache_plugins().
File
- plugins/
views_content_cache/ node_only.inc, line 7 - Provides the Views content cache node only plugin.
View source
class views_content_cache_key_node_only extends views_content_cache_key {
function options_form($value, &$handler = NULL) {
return array(
'#title' => t('Node only'),
'#description' => t('Allows the node segment to be refined to only include main operations create/update/delete. Be careful about combing with other node related segments.'),
'#type' => 'checkboxes',
'#options' => array(
'node_changed' => t('Nodes updated/created/deleted'),
),
'#default_value' => $value,
);
}
function content_key($object, $object_type) {
if ($object_type === 'node') {
return 'node_changed';
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
views_content_cache_key:: |
function | Handy helper method that scans the given view looking for arguments. | ||
views_content_cache_key:: |
function | The method by which this plugin's where clause will be combined with others. | 1 | |
views_content_cache_key:: |
function | An array of keys to check in this cache segment when viewing the view. | 1 | |
views_content_cache_key:: |
function | Returns an array of views arguments that can supply valid key values. | 2 | |
views_content_cache_key:: |
function | Replaces values corresponding to argument values set dynamically. | ||
views_content_cache_key_node_only:: |
function |
Builds an array of keys for the cache segment. Overrides views_content_cache_key:: |
||
views_content_cache_key_node_only:: |
function |
Optionally provides a option form for the user to use this segment. Overrides views_content_cache_key:: |