diff options
author | Brion Vibber <brion@pobox.com> | 2010-12-17 17:13:21 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-12-17 17:13:21 -0800 |
commit | d8a3a88ec8eae3134694c98e5a9ae42bc30b289f (patch) | |
tree | 22554406da875404d3417edd91eaeaeef0bb693c /classes/Memcached_DataObject.php | |
parent | bf59eaf602c8319d5ae99d9809b4d4867cb632cd (diff) | |
parent | fb8312ebf4537033077917d0003f716206d0d23d (diff) |
Merge branch '0.9.x' into 1.0.x
Conflicts:
classes/Memcached_DataObject.php
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 27bb5d3c9..f71bfd3da 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -339,10 +339,14 @@ class Memcached_DataObject extends Safe_DataObject $start = microtime(true); $fail = false; - try { - $result = parent::_query($string); - } catch (Exception $e) { - $fail = $e; + $result = null; + if (Event::handle('StartDBQuery', array($this, $string, &$result))) { + try { + $result = parent::_query($string); + } catch (Exception $e) { + $fail = $e; + } + Event::handle('EndDBQuery', array($this, $string, &$result)); } $delta = microtime(true) - $start; |