Skip to content

Commit 81824e2

Browse files
committed
Add applyWhere and applyNotwhere
1 parent e08607d commit 81824e2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

hungng/HungNG_Custom_Based_model.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,21 @@ public function prepare_wheres_statement($wheres)
469469
return $this->db;
470470
}
471471

472+
/**
473+
* Function apply_wheres
474+
*
475+
* @param $wheres
476+
*
477+
* @return bool|\CI_DB_query_builder|object
478+
* @author : 713uk13m <dev@nguyenanhung.com>
479+
* @copyright: 713uk13m <dev@nguyenanhung.com>
480+
* @time : 27/03/2023 07:52
481+
*/
482+
public function apply_wheres($wheres)
483+
{
484+
return $this->prepare_wheres_statement($wheres);
485+
}
486+
472487
/**
473488
* Function prepare_wheres_not_statement
474489
*
@@ -502,6 +517,21 @@ public function prepare_wheres_not_statement($wheres)
502517
return $this->db;
503518
}
504519

520+
/**
521+
* Function apply_not_wheres
522+
*
523+
* @param $wheres
524+
*
525+
* @return bool|\CI_DB_query_builder|object
526+
* @author : 713uk13m <dev@nguyenanhung.com>
527+
* @copyright: 713uk13m <dev@nguyenanhung.com>
528+
* @time : 27/03/2023 08:21
529+
*/
530+
public function apply_not_wheres($wheres)
531+
{
532+
return $this->prepare_wheres_not_statement($wheres);
533+
}
534+
505535
/**
506536
* Function only_status_is_active
507537
*

0 commit comments

Comments
 (0)