contributions/jcssmanager/view/base/jcssmanagerviewfactory.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Overload View Factory to cope with 00004 * 00005 */ 00006 class ViewFactoryJCSSManager extends ViewFactoryBase { 00007 const PAGE_CONSOLE = 'PAGE_CONSOLE'; 00008 /** 00009 * Create a suitable view 00010 * 00011 * @param string $type The type of view to create e.g. "page", or "content", or "XML" ... 00012 * @param string $template_name Name of the template 00013 * @param mixed $params Params to pass to view, may depend on type 00014 * @return IView 00015 */ 00016 public function create_view($type, $template_name, $params) { 00017 if ($type == self::PAGE_CONSOLE) { 00018 return new ConsolePageView($params, $template_name); 00019 } 00020 return parent::create_view($type, $template_name, $params); 00021 } 00022 }