/** * Chainable: Get the viewer class for template, view and output * * @param string $template Template to load * @param string $view View * @param string $output Output * @return cbpaidTemplateHandler */ public static function getViewer( $template, $view, $output = 'html' ) { $instance = new self(); if ( ! $template ) { $template = cbpaidApp::settingsParams()->get( 'template', 'default' ); } return $instance->_getViewer( $template, $view, $output ); }