mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 00:54:11 +02:00
Changed "Access to undeclared property" exception message
This commit is contained in:
@@ -251,12 +251,11 @@ abstract class DibiDriver
|
||||
|
||||
|
||||
/**
|
||||
* Undefined property usage prevention
|
||||
* Access to undeclared property
|
||||
*/
|
||||
function __get($nm) { throw new Exception("Undefined property '" . get_class($this) . "::$$nm'"); }
|
||||
function __set($nm, $val) { $this->__get($nm); }
|
||||
private function __unset($nm) { $this->__get($nm); }
|
||||
private function __isset($nm) { $this->__get($nm); }
|
||||
function __get($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
function __set($nm, $val) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
function __unset($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
|
||||
|
||||
} // class DibiDriver
|
||||
|
@@ -399,12 +399,11 @@ abstract class DibiResult implements IteratorAggregate, Countable
|
||||
|
||||
|
||||
/**
|
||||
* Undefined property usage prevention
|
||||
* Access to undeclared property
|
||||
*/
|
||||
function __get($nm) { throw new Exception("Undefined property '" . get_class($this) . "::$$nm'"); }
|
||||
function __set($nm, $val) { $this->__get($nm); }
|
||||
private function __unset($nm) { $this->__get($nm); }
|
||||
private function __isset($nm) { $this->__get($nm); }
|
||||
function __get($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
function __set($nm, $val) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
function __unset($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
|
||||
} // class DibiResult
|
||||
|
||||
|
@@ -376,11 +376,10 @@ class DibiTranslator
|
||||
|
||||
|
||||
/**
|
||||
* Undefined property usage prevention
|
||||
* Access to undeclared property
|
||||
*/
|
||||
function __get($nm) { throw new Exception("Undefined property '" . get_class($this) . "::$$nm'"); }
|
||||
function __set($nm, $val) { $this->__get($nm); }
|
||||
private function __unset($nm) { $this->__get($nm); }
|
||||
private function __isset($nm) { $this->__get($nm); }
|
||||
function __get($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
function __set($nm, $val) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
function __unset($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||
|
||||
} // class DibiParser
|
||||
|
Reference in New Issue
Block a user