From b5ebee8dea28e3a9c5160de1c56f7715153f3af4 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 16 Aug 2019 15:23:42 +0200 Subject: Generate list code function working --- app/class/opt.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'app/class/opt.php') diff --git a/app/class/opt.php b/app/class/opt.php index 9eddf9f..0761782 100644 --- a/app/class/opt.php +++ b/app/class/opt.php @@ -1,21 +1,21 @@ '0', 'max' => '0']; - private $linkfrom = ['min' => '0', 'max' => '0']; - private $col = ['id']; - private $taglist = []; - private $authorlist = []; - private $invert = 0; - - private $artvarlist; + protected $sortby = 'id'; + protected $order = 1; + protected $tagfilter = []; + protected $tagcompare = 'OR'; + protected $authorfilter = []; + protected $authorcompare = 'OR'; + protected $secure = 4; + protected $linkto = ['min' => '0', 'max' => '0']; + protected $linkfrom = ['min' => '0', 'max' => '0']; + protected $col = ['id']; + protected $taglist = []; + protected $authorlist = []; + protected $invert = 0; + + protected $artvarlist; public function __construct(array $donnees = []) { @@ -202,7 +202,7 @@ class Opt public function setsortby($sortby) { - if (is_string($sortby) && in_array($sortby, $this->artvarlist())) { + if (is_string($sortby) && in_array($sortby, $this->artvarlist)) { $this->sortby = strtolower(strip_tags($sortby)); } } -- cgit v1.2.3