]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Throw an exception when an undefined method is called on one of our DB_DataObjects...
authorBrion Vibber <brion@pobox.com>
Fri, 19 Mar 2010 19:38:14 +0000 (12:38 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 19 Mar 2010 19:38:14 +0000 (12:38 -0700)
commit5e54e7b55d8474779b0d458e51ba5311b1a42708
treed1bf96d5d2034d0bbf580689f3f13f6301a55761
parentf23fc93a43ea08ad754f97fef509f841b63f2cf1
Throw an exception when an undefined method is called on one of our DB_DataObjects, instead of failing silently.
The magic __call() method is used to implement a getter and setter interface, and simply didn't bother to throw an error for things it didn't recognize.

This may expose a number of existing errors where mistyped method names are called and we're not noticing that they're failing.
classes/Safe_DataObject.php