From 63202efc75a63ef30e58c12d602ea95a960a0976 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 21 Aug 2019 11:35:40 +0200 Subject: New feature : bookmarks - public bookmarks stored in config.json - personnal bookmarks stored in user data --- app/class/optlist.php | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'app/class/optlist.php') diff --git a/app/class/optlist.php b/app/class/optlist.php index 5190596..11e6f72 100644 --- a/app/class/optlist.php +++ b/app/class/optlist.php @@ -2,11 +2,11 @@ class Optlist extends Opt { - private $description = 0; - private $thumbnail = 0; - private $date = 0; - private $author = 0; - private $style = 0; + protected $description = 0; + protected $thumbnail = 0; + protected $date = 0; + protected $author = 0; + protected $style = 0; @@ -18,24 +18,6 @@ class Optlist extends Opt } } - - /** - * Get the query as http string - * - * @return string The resulted query - */ - public function getquery() : string - { - $class = get_class_vars(get_class($this)); - $object = get_object_vars($this); - $class['artvarlist'] = $object['artvarlist']; - $class['taglist'] = $object['taglist']; - $class['authorlist'] = $object['authorlist']; - $query = array_diff_assoc_recursive($object, $class); - - return urldecode(http_build_query($query)); - } - /** * Get the code to insert directly */ @@ -46,6 +28,7 @@ class Optlist extends Opt + // _______________________________________ G E T _____________________________________ -- cgit v1.2.3