1 view.inc view::_init_handler($key, $info)

Attach all of the handlers for each type.

Parameters

$key: One of 'argument', 'field', 'sort', 'filter', 'relationship'

$info: The $info from views_object_types for this object.

File

core/modules/views/includes/view.inc, line 793
Provides the view object type and associated methods.

Class

view

Code

function _init_handler($key, $info) {
  // Load the requested items from the display onto the object.
  $this->$key = $this->display_handler->get_handlers($key);

  // This reference deals with difficult PHP indirection.
  $handlers = &$this->$key;

  // Run through and test for accessibility.
  foreach ($handlers as $id => $handler) {
    if (!$handler->access()) {
      unset($handlers[$id]);
    }
  }
}