You are here

class views_handler_filter_heartbeat_perms in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 views/handlers/views_handler_filter_heartbeat_perms.inc \views_handler_filter_heartbeat_perms

Hierarchy

Expanded class hierarchy of views_handler_filter_heartbeat_perms

1 string reference to 'views_handler_filter_heartbeat_perms'
heartbeat_views_data in views/heartbeat_views.views.inc
Implementation of views hook hook_views_data()

File

views/handlers/views_handler_filter_heartbeat_perms.inc, line 2

View source
class views_handler_filter_heartbeat_perms extends views_handler_filter_in_operator {
  function construct() {
    parent::construct();
    $this->definition['numeric'] = TRUE;
  }

  /**
   * Child classes should override this function to set the 'value options'.
   * This can use a guard to be used to reduce database hits as much as
   * possible.
   */
  function get_value_options() {
    $this->value_options = variable_get('heartbeat_perms', array(
      'Private',
      'Friends',
      'Full Site',
      'All',
    ));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_handler_filter_heartbeat_perms::construct function
views_handler_filter_heartbeat_perms::get_value_options function Child classes should override this function to set the 'value options'. This can use a guard to be used to reduce database hits as much as possible.