/** * Return default handler objects for supported tasks. * @param string $handler_type Specific functionality required. * @param OBJECT_RENDERER_OPTIONS $options * @return object * @access private */ protected function _default_handler_for($handler_type, $options = null) { switch ($handler_type) { case Handler_print_renderer: case Handler_html_renderer: case Handler_text_renderer: include_once 'webcore/gui/user_renderer.php'; return new USER_RENDERER($this->app, $options); case Handler_commands: include_once 'webcore/cmd/user_commands.php'; return new USER_COMMANDS($this); case Handler_history_item: include_once 'webcore/obj/webcore_history_items.php'; return new USER_HISTORY_ITEM($this->app); case Handler_subscriptions: include_once 'webcore/gui/subscription_renderer.php'; return new USER_SUBSCRIPTION_RENDERER($this->app, $options); default: return parent::_default_handler_for($handler_type, $options); } }
/** * Return default handler objects for supported tasks. * @param string $handler_type Specific functionality required. * @param object $options * @return object * @access private */ protected function _default_handler_for($handler_type, $options = null) { switch ($handler_type) { case Handler_print_renderer: case Handler_html_renderer: case Handler_text_renderer: include_once 'webcore/gui/search_renderer.php'; return new SEARCH_RENDERER($this->app, $options); case Handler_commands: include_once 'webcore/cmd/search_commands.php'; return new SEARCH_COMMANDS($this); default: return parent::_default_handler_for($handler_type, $options); } }
/** * Return default handler objects for supported tasks. * @param string $handler_type Specific functionality required. * @param object $options * @return object * @access private */ protected function _default_handler_for($handler_type, $options = null) { switch ($handler_type) { case Handler_commands: include_once 'webcore/cmd/group_commands.php'; return new GROUP_COMMANDS($this); case Handler_history_item: include_once 'webcore/obj/webcore_history_items.php'; return new GROUP_HISTORY_ITEM($this->app); default: return parent::_default_handler_for($handler_type, $options); } }
/** * Return default handler objects for supported tasks. * @param string $handler_type Specific functionality required. * @param object $options * @return object * @access private */ protected function _default_handler_for($handler_type, $options = null) { switch ($handler_type) { case Handler_history_item: include_once 'webcore/obj/webcore_history_items.php'; return new OBJECT_IN_FOLDER_HISTORY_ITEM($this->app); case Handler_location: include_once 'webcore/gui/location_renderer.php'; return new OBJECT_IN_FOLDER_LOCATION_RENDERER($this->context); default: return parent::_default_handler_for($handler_type, $options); } }