/** * 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/history_item_renderer.php'; return new HISTORY_ITEM_RENDERER($this->app, $options); case Handler_mail: include_once 'webcore/mail/history_item_mail_renderer.php'; return new HISTORY_ITEM_MAIL_RENDERER($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_html_renderer: include_once 'webcore/gui/icon_renderer.php'; return new ICON_RENDERER($this->context); case Handler_commands: include_once 'webcore/cmd/icon_commands.php'; return new ICON_COMMANDS($this); default: return parent::_default_handler_for($handler_type, $options); } }