aboutsummaryrefslogtreecommitdiff
path: root/class/class.w.opt.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-09-21 00:17:11 +0200
committervincent-peugnet <v.peugnet@free.fr>2018-09-21 00:17:11 +0200
commit701c4637294fc9b63d53a8eeb26d46ef94af1941 (patch)
treeee5b4fb38cc3a023590dfa3c127e1cf989ffaaab /class/class.w.opt.php
parentcbecc0dfc819febf4c2b36791d5a2a7e69d842af (diff)
downloadwcms-701c4637294fc9b63d53a8eeb26d46ef94af1941.tar.gz
wcms-701c4637294fc9b63d53a8eeb26d46ef94af1941.zip
2.6 media update + new skin + lot of bugs fixies
Diffstat (limited to 'class/class.w.opt.php')
-rw-r--r--class/class.w.opt.php49
1 files changed, 25 insertions, 24 deletions
diff --git a/class/class.w.opt.php b/class/class.w.opt.php
index fc71312..684cb09 100644
--- a/class/class.w.opt.php
+++ b/class/class.w.opt.php
@@ -10,6 +10,7 @@ class Opt
private $lienfrom = ['min' => '0', 'max' => '0'];
private $col = ['id'];
private $taglist = [];
+ private $invert = 0;
private $artvarlist;
@@ -40,15 +41,6 @@ class Opt
}
}
- public function dump()
- {
- var_dump($this);
- }
-
-
-
-
-
// _______________________________________________ G E T _______________________________________________
public function sortby()
@@ -95,14 +87,19 @@ class Opt
}
}
- public function artvarlist()
+ public function taglist()
{
- return $this->artvarlist;
+ return $this->taglist;
}
- public function taglist()
+ public function invert()
{
- return $this->taglist;
+ return $this->invert;
+ }
+
+ public function artvarlist()
+ {
+ return $this->artvarlist;
}
@@ -126,19 +123,13 @@ class Opt
public function settagfilter($tagfilter)
{
if (is_array($tagfilter)) {
- // $tagfilterlist = [];
- // foreach ($tagfilter as $tag) {
- // if (array_key_exists($tag, $this->taglist())) {
- // $tagfilterlist[] = $tag;
- // }
- // }
$this->tagfilter = $tagfilter;
}
}
public function settagcompare($tagcompare)
{
- if(in_array($tagcompare, ['OR', 'AND'])) {
+ if (in_array($tagcompare, ['OR', 'AND'])) {
$this->tagcompare = $tagcompare;
}
}
@@ -187,10 +178,6 @@ class Opt
}
}
- public function setartvarlist(array $artvarlist)
- {
- $this->artvarlist = $artvarlist;
- }
public function settaglist(array $artlist)
{
@@ -208,6 +195,20 @@ class Opt
$this->taglist = $taglist;
}
+ public function setinvert(int $invert)
+ {
+ if ($invert == 0 || $invert == 1) {
+ $this->invert = $invert;
+ }
+ }
+
+
+ public function setartvarlist(array $artvarlist)
+ {
+ $this->artvarlist = $artvarlist;
+ }
+
+
}