gyro/core/lib/interfaces/iviewfactory.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * View Factory extension interface 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Interfaces 00007 */ 00008 interface IViewFactory { 00009 const PAGE = 'page'; 00010 const CONTENT = 'content'; 00011 const MESSAGE = 'message'; 00012 const XML = 'xml'; 00013 00014 /** 00015 * Create a suitable view 00016 * 00017 * @param string $type The type of view to create e.g. "page", or "content", or "XML" ... 00018 * @param string $template_name Name of the template 00019 * @param mixed $params Params to pass to view, may depend on type 00020 * @return IView 00021 */ 00022 public function create_view($type, $template_name, $params); 00023 00024 /** 00025 * Set old implementation. Requests not handled should be delegated to this 00026 * 00027 * @param IViewFactory $implementation 00028 */ 00029 public function set_old_implementation(IViewFactory $implementation); 00030 }