From 928c5436196166229d7c5853d9febfb84091ff35 Mon Sep 17 00:00:00 2001 From: ahmad luky ramdani Date: Tue, 7 Apr 2020 17:07:34 +0700 Subject: [PATCH] Create End and Starts a new group by adding an opening parenthesis to the WHERE clause --- application/libraries/Datatables.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/application/libraries/Datatables.php b/application/libraries/Datatables.php index c6de11f..9b804e1 100644 --- a/application/libraries/Datatables.php +++ b/application/libraries/Datatables.php @@ -635,6 +635,24 @@ public function last_query() { return $this->ci->db->last_query(); } + + /** + * Starts a new group by adding an opening parenthesis to the WHERE clause of the query. + * @return type + */ + public function group_start() + { + return $this->ci->db->group_start(); + } + + /** + * Ends the current group by adding an closing parenthesis to the WHERE clause of the query. + * @return type + */ + public function group_end() + { + return $this->ci->db ->group_end(); + } } /* End of file Datatables.php */ /* Location: ./application/libraries/Datatables.php */