wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
class.NullView.php
Go to the documentation of this file.
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2014 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of any of the following licenses
7  * at your choice:
8  *
9  * - GNU Lesser General Public License (LGPL)
10  * http://www.gnu.org/licenses/lgpl.html
11  * - Eclipse Public License (EPL)
12  * http://www.eclipse.org/org/documents/epl-v10.php
13  *
14  * See the license.txt file distributed with this work for
15  * additional information.
16  *
17  * $Id: class.NullView.php 1462 2014-02-04 23:52:27Z iherwig $
18  */
19 
20 /**
21  * @class NullView
22  * @ingroup Presentation
23  * @brief NullView is a stub class that implements all view methods.
24  *
25  * @author ingo herwig <ingo@wemove.com>
26  */
27 class NullView
28 {
29  function trigger_error($error_msg, $error_type = E_USER_WARNING)
30  {
31  WCMFException::throwEx("View error: $error_msg", __FILE__, __LINE__);
32  }
33 
34  function setup() {}
35 
36  function clearAllCache()
37  {
38  return true;
39  }
40  function clearCache($tplFile=null, $cacheId=null)
41  {
42  return true;
43  }
44  function isCached($tplFile, $cacheId=null)
45  {
46  return false;
47  }
48 
49  function assign($tpl_var, $value=null) {}
50  function assign_by_ref($tpl_var, &$value) {}
51  function display($resource_name, $cache_id=null, $compile_id=null) {}
52  function fetch($resource_name, $cache_id=null, $compile_id=null, $display=false) {}
53  function &get_template_vars($name=null) {}
54  function clear_all_assign() {}
55 }
56 ?>
& get_template_vars($name=null)
clearCache($tplFile=null, $cacheId=null)
assign($tpl_var, $value=null)
isCached($tplFile, $cacheId=null)
throwEx($message, $file='', $line='')
display($resource_name, $cache_id=null, $compile_id=null)
trigger_error($error_msg, $error_type=E_USER_WARNING)
NullView is a stub class that implements all view methods.
assign_by_ref($tpl_var, &$value)
fetch($resource_name, $cache_id=null, $compile_id=null, $display=false)