From 228946e98cbb87f115a8a2440cda395c9706fcb8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 5 Feb 2012 15:57:41 -0800 Subject: [PATCH] Overload Item_Model to support hiding in Item_Model::children() --- 3.0/modules/hide/libraries/MY_item.php | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 3.0/modules/hide/libraries/MY_item.php diff --git a/3.0/modules/hide/libraries/MY_item.php b/3.0/modules/hide/libraries/MY_item.php new file mode 100644 index 00000000..85ae5620 --- /dev/null +++ b/3.0/modules/hide/libraries/MY_item.php @@ -0,0 +1,30 @@ +join("hidden_items", "items.id", "hidden_items.item_id", "LEFT OUTER"); + $this->where("hidden_items.item_id", "IS", NULL); + return parent::children($limit, $offset, $where, $order_by); + } + } +}