You are here

class nodereferrer_view_handler_field_field in NodeReferrer 6

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

Views handler to get fields by nodereferrer fields

Hierarchy

Expanded class hierarchy of nodereferrer_view_handler_field_field

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

File

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

View source
class nodereferrer_view_handler_field_field extends nodereferrer_view_handler_field {
  function get_options_title() {
    return t('Using field');
  }
  function get_options() {
    return nodereferrer_nodereference_field_options();
  }
  function get_item_list($nid) {
    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_field::get_node_list function This should be overriden by descendant classes
nodereferrer_view_handler_field::options_form function Form to get field parameters
nodereferrer_view_handler_field::query function All we need to do is ensure our table is there
nodereferrer_view_handler_field::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_field::render function Render the field.
nodereferrer_view_handler_field_field::get_item_list function
nodereferrer_view_handler_field_field::get_options function Overrides nodereferrer_view_handler_field::get_options
nodereferrer_view_handler_field_field::get_options_title function