You are here

class views_content_cache_key_comment in Views content cache 7.3

Same name and namespace in other branches
  1. 6.2 plugins/comment.inc \views_content_cache_key_comment

@file Provides the Views content cache comment plugin.

Hierarchy

Expanded class hierarchy of views_content_cache_key_comment

1 string reference to 'views_content_cache_key_comment'
views_content_cache_views_content_cache_plugins in ./views_content_cache.module
Implements hook_views_content_cache_plugins().

File

plugins/views_content_cache/comment.inc, line 7
Provides the Views content cache comment plugin.

View source
class views_content_cache_key_comment extends views_content_cache_key {
  function options_form($value, &$handler = NULL) {
    return array(
      '#title' => t('Comments'),
      '#description' => t('Checks for new or updated comments'),
      '#type' => 'checkboxes',
      '#options' => array(
        'changed' => t('New or updated comments'),
      ),
      '#default_value' => $value,
    );
  }
  function content_key($object, $object_type) {
    if ($object_type === 'comment') {
      return 'changed';
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_content_cache_key::additional_options_for_arguments function Handy helper method that scans the given view looking for arguments.
views_content_cache_key::clause_mode function The method by which this plugin's where clause will be combined with others. 1
views_content_cache_key::view_key function An array of keys to check in this cache segment when viewing the view. 1
views_content_cache_key::view_key_from_arguments function Returns an array of views arguments that can supply valid key values. 2
views_content_cache_key::view_key_replace_arguments function Replaces values corresponding to argument values set dynamically.
views_content_cache_key_comment::content_key function Builds an array of keys for the cache segment. Overrides views_content_cache_key::content_key
views_content_cache_key_comment::options_form function Optionally provides a option form for the user to use this segment. Overrides views_content_cache_key::options_form