diff --git a/dibi/libs/driver.php b/dibi/libs/driver.php index 54de462e..9fd2cce8 100644 --- a/dibi/libs/driver.php +++ b/dibi/libs/driver.php @@ -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 diff --git a/dibi/libs/resultset.php b/dibi/libs/resultset.php index 6577538b..522b8d2b 100644 --- a/dibi/libs/resultset.php +++ b/dibi/libs/resultset.php @@ -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 diff --git a/dibi/libs/translator.php b/dibi/libs/translator.php index cefdfeb9..79f05dec 100644 --- a/dibi/libs/translator.php +++ b/dibi/libs/translator.php @@ -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 diff --git a/readme.txt b/readme.txt index ddddcaad..ce4f5a13 100644 --- a/readme.txt +++ b/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):