aboutsummaryrefslogtreecommitdiff
path: root/app/class/Modelhome.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-02-12 15:31:08 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-02-12 15:31:08 +0100
commit0937c851313b5098dc15e5d411b6c3638cbd5116 (patch)
tree1f94253f58cbe3e53e84bed6e51a03d20985f941 /app/class/Modelhome.php
parentd39242c494d9e9aca17f4202fbb78ebd6cb6141b (diff)
downloadwcms-0937c851313b5098dc15e5d411b6c3638cbd5116.tar.gz
wcms-0937c851313b5098dc15e5d411b6c3638cbd5116.zip
new feature : filter by link to
Diffstat (limited to 'app/class/Modelhome.php')
-rw-r--r--app/class/Modelhome.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/class/Modelhome.php b/app/class/Modelhome.php
index 943f4bd..9d9703d 100644
--- a/app/class/Modelhome.php
+++ b/app/class/Modelhome.php
@@ -16,6 +16,7 @@ class Modelhome extends Modelpage
$opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'authors', 'visitcount', 'editcount', 'affcount']);
$opt->settaglist($table);
$opt->setauthorlist($table);
+ $opt->setpageidlist($table);
$opt->submit();
return $opt;
@@ -52,8 +53,9 @@ class Modelhome extends Modelpage
$filtertagfilter = $this->filtertagfilter($table, $opt->tagfilter(), $opt->tagcompare());
$filterauthorfilter = $this->filterauthorfilter($table, $opt->authorfilter(), $opt->authorcompare());
$filtersecure = $this->filtersecure($table, $opt->secure());
+ $filterlinkto = $this->filterlinkto($table, $opt->linkto());
- $filter = array_intersect($filtertagfilter, $filtersecure, $filterauthorfilter);
+ $filter = array_intersect($filtertagfilter, $filtersecure, $filterauthorfilter, $filterlinkto);
$table2 = [];
$table2invert = [];
foreach ($table as $page) {