function view::_init_handler

cis7 view.inc view::_init_handler($key, $info)
cle7 view.inc view::_init_handler($key, $info)
elmsmedia7 view.inc view::_init_handler($key, $info)
icor7 view.inc view::_init_handler($key, $info)
meedjum_blog7 view.inc view::_init_handler($key, $info)
mooc7 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.

1 call to view::_init_handler()
view::init_handlers in sites/all/modules/ulmus/views/includes/view.inc
Acquire and attach all of the handlers.

File

sites/all/modules/ulmus/views/includes/view.inc, line 757
Provides the view object type and associated methods.

Class

view
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

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]);
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.