aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/dummy.php
blob: a7f8760e059d831a9fe35bb054311bac2c0a4f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
	/**
	 * Dummy class.
	 * This function contains dummy functions and classes which return safe dummy values. Essentially this is 
	 * to make sure that things like calling echo page_owner_entity()->name don't cause a WSoD.
	 * 
	 * @package Elgg
	 * @subpackage Core
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Marcus Povey 
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.org/
	 */
	
	/**
	 * Dummy class.
	 * For every function call, get and set this function returns false.
	 */
	class ElggDummy {
		
		 public function __call($method, $args) {
		 	return false;
		 }
		 
		function __get($name) { return false; }
		
		function __set($name, $value) { return false; }
	}
?>