Code Duplication    Length = 14-14 lines in 2 locations

programs/utilit/movement.class.php 1 location

@@ 81-94 (lines=14) @@
78
	}
79
	
80
	
81
	public function __get($property)
82
	{
83
	    $row = $this->getRow();
84
	
85
	    if (!isset($row[$property]) && 'status' !== $property)
86
	    {
87
	        require_once $GLOBALS['babInstallPath'].'utilit/devtools.php';
88
	        bab_debug_print_backtrace();
89
	        bab_debug($row);
90
	        throw new Exception(sprintf('Failed to load property %s on %s', $property, get_class($this)));
91
	    }
92
	
93
	    return $row[$property];
94
	}
95
	
96
	
97
	

programs/utilit/record.class.php 1 location

@@ 66-79 (lines=14) @@
63
		return isset($row[$property]);
64
	}
65
	
66
	public function __get($property)
67
	{
68
		$row = $this->getRow();
69
		
70
		if (!isset($row[$property]))
71
		{
72
			require_once $GLOBALS['babInstallPath'].'utilit/devtools.php';
73
			bab_debug_print_backtrace();
74
			bab_debug($row);
75
			throw new Exception(sprintf('Failed to load property %s on %s', $property, get_class($this)));
76
		}
77
		
78
		return $row[$property];
79
	}
80
	
81
	public function __set($property, $value)
82
	{