class views_content_cache_key_nodequeue in Views content cache 6.2
Hierarchy
- class \views_content_cache_key
Expanded class hierarchy of views_content_cache_key_nodequeue
1 string reference to 'views_content_cache_key_nodequeue'
- views_content_cache_views_content_cache_plugins in ./
views_content_cache.module - Implementation of hook_context_plugins().
File
- plugins/
nodequeue.inc, line 3
View source
class views_content_cache_key_nodequeue extends views_content_cache_key {
function options_form($value, &$handler) {
// Get list of nodequeues
$options = array();
$subqueues = nodequeue_load_subqueues_by_queue(nodequeue_get_all_qids());
foreach ($subqueues as $sqid => $subqueue) {
$options[$sqid] = $subqueue->title;
}
natcasesort($options);
return array(
'#title' => t('Nodequeues'),
'#description' => t('Checks for changes to nodequeues for the selected queues.'),
'#type' => 'checkboxes',
'#options' => $options,
'#default_value' => $value,
'#weight' => -10,
);
}
function content_key($object, $object_type) {
if ($object_type === 'nodequeue') {
return $object->sqid;
}
}
function clause_mode() {
// We can't be combined with other cache segments:
return 'OR';
}
}
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 | 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_nodequeue:: |
function |
The method by which this plugin's where clause will be combined with others. Overrides views_content_cache_key:: |
||
views_content_cache_key_nodequeue:: |
function |
Builds an array of keys for the cache segment. Overrides views_content_cache_key:: |
||
views_content_cache_key_nodequeue:: |
function |
Optionally provides a option form for the user to use this segment. Overrides views_content_cache_key:: |