mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 05:37:39 +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 __get($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
function __set($nm, $val) { $this->__get($nm); }
|
function __set($nm, $val) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
private function __unset($nm) { $this->__get($nm); }
|
function __unset($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
private function __isset($nm) { $this->__get($nm); }
|
|
||||||
|
|
||||||
|
|
||||||
} // class DibiDriver
|
} // 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 __get($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
function __set($nm, $val) { $this->__get($nm); }
|
function __set($nm, $val) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
private function __unset($nm) { $this->__get($nm); }
|
function __unset($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
private function __isset($nm) { $this->__get($nm); }
|
|
||||||
|
|
||||||
} // class DibiResult
|
} // 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 __get($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
function __set($nm, $val) { $this->__get($nm); }
|
function __set($nm, $val) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
private function __unset($nm) { $this->__get($nm); }
|
function __unset($nm) { throw new Exception("Access to undeclared property: " . get_class($this) . "::$$nm"); }
|
||||||
private function __isset($nm) { $this->__get($nm); }
|
|
||||||
|
|
||||||
} // class DibiParser
|
} // class DibiParser
|
||||||
|
10
readme.txt
10
readme.txt
@@ -25,6 +25,16 @@ http://dibi.texy.info/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dibi.compact
|
||||||
|
------------
|
||||||
|
|
||||||
|
This is shrinked single-file version of whole Dibi, useful when you don't
|
||||||
|
want to modify library, but just use it.
|
||||||
|
|
||||||
|
This is exactly the same as normal version, just only comments and
|
||||||
|
whitespaces are removed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-----
|
-----
|
||||||
For more information, visit the author's weblog (in czech language):
|
For more information, visit the author's weblog (in czech language):
|
||||||
|
Reference in New Issue
Block a user