/** * Attach all of the handlers for each type. * * @param $key * One of 'argument', 'field', 'sort', 'filter', 'relationship' * @param $info * The $info from getHandlerTypes for this object. */ protected function _initHandler($key, $info) { // Load the requested items from the display onto the object. $this->{$key} =& $this->display_handler->getHandlers($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($this->user)) { unset($handlers[$id]); } } }