diff options
Diffstat (limited to 'app/class/Opt.php')
-rw-r--r-- | app/class/Opt.php | 20 |
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 = []; |