diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-16 15:23:42 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-16 15:23:42 +0200 |
commit | b5ebee8dea28e3a9c5160de1c56f7715153f3af4 (patch) | |
tree | b7729495fdfa58210612d8280058a7412c57e9ea /app/class/opt.php | |
parent | 566b995bab45355d814ac5a8bfbf18e3a59c14ba (diff) | |
download | wcms-b5ebee8dea28e3a9c5160de1c56f7715153f3af4.tar.gz wcms-b5ebee8dea28e3a9c5160de1c56f7715153f3af4.zip |
Generate list code function working
Diffstat (limited to 'app/class/opt.php')
-rw-r--r-- | app/class/opt.php | 32 |
1 files changed, 16 insertions, 16 deletions
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 @@ <?php class Opt { - private $sortby = 'id'; - private $order = 1; - private $tagfilter = []; - private $tagcompare = 'OR'; - private $authorfilter = []; - private $authorcompare = 'OR'; - private $secure = 4; - private $linkto = ['min' => '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)); } } |