From 7c9ceb23b415eb6863c51ac1eb1fab8d50e2aa99 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 7 Apr 2020 17:16:10 +0200 Subject: model page,render refactor getlister > pagelist optlist now generate html --- app/class/Modelhome.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'app/class/Modelhome.php') diff --git a/app/class/Modelhome.php b/app/class/Modelhome.php index 9957c0b..b7b063e 100644 --- a/app/class/Modelhome.php +++ b/app/class/Modelhome.php @@ -12,7 +12,7 @@ class Modelhome extends Modelpage public function optinit($table) { - $opt = new Opt(Page::classvarlist()); + $opt = new Opt(); $opt->setcol(['id', 'tag', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'authors', 'visitcount', 'editcount', 'affcount']); $opt->settaglist($table); $opt->setauthorlist($table); @@ -22,20 +22,8 @@ class Modelhome extends Modelpage return $opt; } - /** - * Initialise Optlist object using - * - * @param array $table the list of all pages objects - * - * @return Optlist Object initialized - */ - public function Optlistinit(array $table) - { - $optlist = new Optlist(Page::classvarlist()); - return $optlist; - } - + /** * @param array $pagelist of Pages objects as `id => Page` * @param Opt $opt -- cgit v1.2.3