From 43e8cbf51bfdca8bc29acc23208f1018d7af913a Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sat, 1 Mar 2008 23:14:43 +0000 Subject: added or_having, deprecated orhaving --- system/database/DB_active_rec.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index 903584200..b97fb11cd 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -779,7 +779,19 @@ class CI_DB_active_record extends CI_DB_driver { { return $this->_having($key, $value, 'AND '); } - + + // -------------------------------------------------------------------- + + /** + * orhaving() is an alias of or_having() + * this function is here for backwards compatibility, as + * orhaving() has been deprecated + */ + + function orhaving($key, $value = '') + { + return $this->or_havinggroup_by($key, $value = ''); + } // -------------------------------------------------------------------- /** @@ -792,7 +804,7 @@ class CI_DB_active_record extends CI_DB_driver { * @param string * @return object */ - function orhaving($key, $value = '') + function or_having($key, $value = '') { return $this->_having($key, $value, 'OR '); } -- cgit v1.2.3-24-g4f1b