/** * 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_navigator: include_once 'projects/gui/job_navigator.php'; return new JOB_NAVIGATOR($this); case Handler_print_renderer: case Handler_html_renderer: case Handler_text_renderer: include_once 'projects/gui/job_renderer.php'; return new JOB_RENDERER($this->app, $options); case Handler_commands: include_once 'projects/cmd/job_commands.php'; return new JOB_COMMANDS($this); case Handler_history_item: include_once 'projects/obj/project_history_items.php'; return new JOB_HISTORY_ITEM($this->app); case Handler_associated_data: include_once 'projects/gui/job_renderer.php'; return new JOB_ASSOCIATED_DATA_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_navigator: include_once 'projects/gui/change_navigator.php'; return new CHANGE_NAVIGATOR($this); case Handler_print_renderer: case Handler_html_renderer: case Handler_text_renderer: include_once 'projects/gui/change_renderer.php'; return new CHANGE_RENDERER($this->app, $options); case Handler_commands: include_once 'projects/cmd/change_commands.php'; return new CHANGE_COMMANDS($this); case Handler_history_item: include_once 'projects/obj/project_history_items.php'; return new CHANGE_HISTORY_ITEM($this->app); default: return parent::_default_handler_for($handler_type, $options); } }