diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-21 15:25:53 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-21 15:25:53 +0200 |
commit | 59e670424ef9d7769e4252fe0f83e42d39a5c9b4 (patch) | |
tree | 478df7f249f0977f0ffeccfa958e8e66cfe17780 /app/class | |
parent | 470ff90cfa4fa50a25e428454465da37aff0aa40 (diff) | |
download | wcms-59e670424ef9d7769e4252fe0f83e42d39a5c9b4.tar.gz wcms-59e670424ef9d7769e4252fe0f83e42d39a5c9b4.zip |
Fix : get list code moved to selection
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/modelhome.php | 2 | ||||
-rw-r--r-- | app/class/optlist.php | 12 |
2 files changed, 12 insertions, 2 deletions
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); |