aboutsummaryrefslogtreecommitdiff
path: root/app/class/Opt.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-08 16:38:38 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-08 16:38:38 +0200
commitc3e62c500b38104acaecc987621cfc03058729c0 (patch)
tree8e71178b383055eb5bc659b04bb2da59dad6b778 /app/class/Opt.php
parentb49830232096951202688bd775193424880bbd11 (diff)
downloadwcms-c3e62c500b38104acaecc987621cfc03058729c0.tar.gz
wcms-c3e62c500b38104acaecc987621cfc03058729c0.zip
fix and clean Opt
Diffstat (limited to 'app/class/Opt.php')
-rw-r--r--app/class/Opt.php20
1 files changed, 2 insertions, 18 deletions
diff --git a/app/class/Opt.php b/app/class/Opt.php
index 59a3302..ecfbbc1 100644
--- a/app/class/Opt.php
+++ b/app/class/Opt.php
@@ -12,7 +12,6 @@ class Opt extends Item
protected $authorcompare = 'AND';
protected $secure = 4;
protected $linkto = '';
- protected $col = ['id'];
protected $taglist = [];
protected $authorlist = [];
protected $invert = 0;
@@ -25,7 +24,8 @@ class Opt extends Item
public function __construct(array $data = [])
{
$this->hydrate($data);
- $this->pagevarlist = get_object_vars(new Page());
+ $page = new Page();
+ $this->pagevarlist = ($page->getobjectvars());
}
@@ -246,15 +246,6 @@ class Opt extends Item
return $this->linkto;
}
- public function col($type = 'array')
- {
- if ($type == 'string') {
- return implode(', ', $this->col);
- } else {
- return ($this->col);
- }
- }
-
public function taglist()
{
return $this->taglist;
@@ -355,13 +346,6 @@ class Opt extends Item
}
}
- public function setcol($col)
- {
- if (is_array($col)) {
- $this->col = array_intersect($this->pagevarlist, $col);
- }
- }
-
public function settaglist(array $pagelist)
{
$taglist = [];