diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 17:19:26 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 17:19:26 +0100 |
commit | d7f3313ff4514e38c9f53439cd1a1287e56e45f7 (patch) | |
tree | abff39ab11cb317f5fcd2db558da1c59bdae9239 /w/class/modelhome.php | |
parent | 2f363e8fa26ab849539e64ff7caa21bd164e8979 (diff) | |
download | wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.tar.gz wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.zip |
reboot folder
Diffstat (limited to 'w/class/modelhome.php')
-rw-r--r-- | w/class/modelhome.php | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/w/class/modelhome.php b/w/class/modelhome.php deleted file mode 100644 index 3ff72c7..0000000 --- a/w/class/modelhome.php +++ /dev/null @@ -1,70 +0,0 @@ -<?php - -class Modelhome extends Modeldb -{ - - public function __construct() { - parent::__construct(); - } - - public function optinit($table) - { - - $opt = new Opt(Art2::classvarlist()); - $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'secure']); - //$table = $listmanager->getlisteropt($opt); - //$listmanager->listcalclinkfrom($table); - $opt->settaglist($table); - $opt->submit(); - - - - return $opt; - } - - public function optupdate() - { - - } - - - public function table2($table, $opt) - { - $listmanager = new Modelart; - - - $filtertagfilter = $listmanager->filtertagfilter($table, $opt->tagfilter(), $opt->tagcompare()); - $filtersecure = $listmanager->filtersecure($table, $opt->secure()); - - $filter = array_intersect($filtertagfilter, $filtersecure); - $table2 = []; - $table2invert = []; - foreach ($table as $art) { - if (in_array($art->id(), $filter)) { - $table2[] = $art; - } else { - $table2invert[] = $art; - } - - - } - - if (!empty($opt->invert())) { - $table2 = $table2invert; - } - - $listmanager->artlistsort($table2, $opt->sortby(), $opt->order()); - - - return $table2; - } -} - - - - - - - - -?>
\ No newline at end of file |