diff options
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/BooleanSearch.php | 5 | ||||
| -rw-r--r-- | app/Models/Search.php | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php index 7b3cc0e12..720cbf78e 100644 --- a/app/Models/BooleanSearch.php +++ b/app/Models/BooleanSearch.php @@ -422,6 +422,11 @@ class FreshRSS_BooleanSearch implements \Stringable { } /** @param FreshRSS_BooleanSearch|FreshRSS_Search $search */ + public function prepend(FreshRSS_BooleanSearch|FreshRSS_Search $search): void { + array_unshift($this->searches, $search); + } + + /** @param FreshRSS_BooleanSearch|FreshRSS_Search $search */ public function add(FreshRSS_BooleanSearch|FreshRSS_Search $search): void { $this->searches[] = $search; } diff --git a/app/Models/Search.php b/app/Models/Search.php index a14f1bf1a..265f6a45d 100644 --- a/app/Models/Search.php +++ b/app/Models/Search.php @@ -274,6 +274,9 @@ class FreshRSS_Search implements \Stringable { public function getNotMaxPubdate(): ?int { return $this->not_max_pubdate ?: null; } + public function setMaxPubdate(int $value): void { + $this->max_pubdate = $value; + } public function getMinUserdate(): ?int { return $this->min_userdate ?: null; |
