From c3e62c500b38104acaecc987621cfc03058729c0 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 8 Apr 2020 16:38:38 +0200 Subject: fix and clean Opt --- app/class/Opt.php | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'app/class/Opt.php') 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 = []; -- cgit v1.2.3