From 59e670424ef9d7769e4252fe0f83e42d39a5c9b4 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 21 Aug 2019 15:25:53 +0200 Subject: Fix : get list code moved to selection --- app/class/modelhome.php | 2 +- app/class/optlist.php | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'app/class') diff --git a/app/class/modelhome.php b/app/class/modelhome.php index c30da44..1154e78 100644 --- a/app/class/modelhome.php +++ b/app/class/modelhome.php @@ -11,7 +11,7 @@ class Modelhome extends Modelart { $opt = new Opt(Art2::classvarlist()); - $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'visitcount']); + $opt->setcol(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'date', 'secure', 'visitcount', 'editcount', 'affcount']); $opt->settaglist($table); $opt->setauthorlist($table); $opt->submit(); diff --git a/app/class/optlist.php b/app/class/optlist.php index 11e6f72..1fed661 100644 --- a/app/class/optlist.php +++ b/app/class/optlist.php @@ -2,6 +2,7 @@ class Optlist extends Opt { + protected $title = 1; protected $description = 0; protected $thumbnail = 0; protected $date = 0; @@ -32,6 +33,11 @@ class Optlist extends Opt // _______________________________________ G E T _____________________________________ + public function title() + { + return $this->title; + } + public function description() { return $this->description; @@ -58,9 +64,13 @@ class Optlist extends Opt } - // _______________________________________ S E T _____________________________________ + public function settitle($title) + { + $this->title = intval($title); + } + public function setdescription($description) { $this->description = intval($description); -- cgit v1.2.3