summaryrefslogtreecommitdiff
path: root/htdocs/src/PostIterator.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/src/PostIterator.inc.php')
-rw-r--r--htdocs/src/PostIterator.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/htdocs/src/PostIterator.inc.php b/htdocs/src/PostIterator.inc.php
index 52eb750..cced79b 100644
--- a/htdocs/src/PostIterator.inc.php
+++ b/htdocs/src/PostIterator.inc.php
@@ -33,6 +33,10 @@ class PostIterator implements Iterator {
$this->where[] = "source_id='$source'";
}
+ public function filterCategory($category_id) {
+ $this->where[] = "category_id='$category_id'";
+ }
+
public function orderBy($order) {
$this->order = $order;
}