diff options
| author | 2018-03-14 17:20:41 +0100 | |
|---|---|---|
| committer | 2018-03-14 17:20:41 +0100 | |
| commit | 84d891f8cf43e4bb097a8b05a85dfeb4c48bd215 (patch) | |
| tree | ea2ebffb204c3c31a3cb77bd93351d16fcb5a473 /app/Models/EntryDAOSQLite.php | |
| parent | 881ed44005ec6212f21c0973b772a1652ef1b42a (diff) | |
Light Boolean search implementation (#1828)
* Light Boolean search implementation
"Hello intitle:World OR date:P1D example"
https://github.com/FreshRSS/FreshRSS/issues/879
* Doc Boolean search
* Doc typos
Diffstat (limited to 'app/Models/EntryDAOSQLite.php')
| -rw-r--r-- | app/Models/EntryDAOSQLite.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php index 90aafb200..cca970e36 100644 --- a/app/Models/EntryDAOSQLite.php +++ b/app/Models/EntryDAOSQLite.php @@ -159,7 +159,7 @@ DROP TABLE IF EXISTS `tmp`; * @param integer $priorityMin * @return integer affected rows */ - public function markReadEntries($idMax = 0, $onlyFavorites = false, $priorityMin = 0, $filter = null, $state = 0) { + public function markReadEntries($idMax = 0, $onlyFavorites = false, $priorityMin = 0, $filters = null, $state = 0) { if ($idMax == 0) { $idMax = time() . '000000'; Minz_Log::debug('Calling markReadEntries(0) is deprecated!'); @@ -173,7 +173,7 @@ DROP TABLE IF EXISTS `tmp`; } $values = array($idMax); - list($searchValues, $search) = $this->sqlListEntriesWhere('', $filter, $state); + list($searchValues, $search) = $this->sqlListEntriesWhere('', $filters, $state); $stm = $this->bd->prepare($sql . $search); if (!($stm && $stm->execute(array_merge($values, $searchValues)))) { @@ -199,7 +199,7 @@ DROP TABLE IF EXISTS `tmp`; * @param integer $idMax fail safe article ID * @return integer affected rows */ - public function markReadCat($id, $idMax = 0, $filter = null, $state = 0) { + public function markReadCat($id, $idMax = 0, $filters = null, $state = 0) { if ($idMax == 0) { $idMax = time() . '000000'; Minz_Log::debug('Calling markReadCat(0) is deprecated!'); @@ -211,7 +211,7 @@ DROP TABLE IF EXISTS `tmp`; . 'id_feed IN (SELECT f.id FROM `' . $this->prefix . 'feed` f WHERE f.category=?)'; $values = array($idMax, $id); - list($searchValues, $search) = $this->sqlListEntriesWhere('', $filter, $state); + list($searchValues, $search) = $this->sqlListEntriesWhere('', $filters, $state); $stm = $this->bd->prepare($sql . $search); if (!($stm && $stm->execute(array_merge($values, $searchValues)))) { |
