You are here

class nodereferrer_view_handler_argument_field in NodeReferrer 6

Same name and namespace in other branches
  1. 7 views/nodereferrer_view_handler_argument_field.inc \nodereferrer_view_handler_argument_field

Views handler to filter nodes by nodereferer fields

Hierarchy

Expanded class hierarchy of nodereferrer_view_handler_argument_field

1 string reference to 'nodereferrer_view_handler_argument_field'
nodereferrer_views_data_alter in views/nodereferrer.views.inc
@file nodereferrer.module Views integration

File

views/nodereferrer_view_handler_argument_field.inc, line 10
nodereferrer.module Views integration

View source
class nodereferrer_view_handler_argument_field extends nodereferrer_view_handler_argument {
  function get_options_title() {
    return t('Using field');
  }
  function get_options() {
    return nodereferrer_nodereference_field_options();
  }
  function get_node_list() {
    $nid = (int) $this->argument;
    if (empty($this->options['fields'])) {
      $fields = array_keys(nodereferrer_nodereference_field_options());
    }
    else {
      $fields = array_keys(array_filter($this->options['fields']));
    }
    return $this
      ->referrers($nid, $fields);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
nodereferrer_view_handler_argument::$no_operator property
nodereferrer_view_handler_argument::admin_summary function Admin summary
nodereferrer_view_handler_argument::options_form function Form to get filter parameters
nodereferrer_view_handler_argument::query function Update the query
nodereferrer_view_handler_argument::referrers function Given a node id, field names and content names, returns the list of nodes that refer to the given node. This takes translation settings into account
nodereferrer_view_handler_argument_field::get_node_list function This should be overriden by descendant classes Overrides nodereferrer_view_handler_argument::get_node_list
nodereferrer_view_handler_argument_field::get_options function Overrides nodereferrer_view_handler_argument::get_options
nodereferrer_view_handler_argument_field::get_options_title function