diff options
Diffstat (limited to 'app/class/optlist.php')
-rw-r--r-- | app/class/optlist.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/app/class/optlist.php b/app/class/optlist.php index cf68fa7..5190596 100644 --- a/app/class/optlist.php +++ b/app/class/optlist.php @@ -9,18 +9,13 @@ class Optlist extends Opt private $style = 0; - /** - * New constructor dedicated to parse input string - * - * @param string|array $parsedstring parsed query string - */ - public function __construct($datas = []) - { - if(is_string($datas)) { - $datas = parse_str($this->options, $datas); + public function parsehydrate(string $encoded) + { + if(is_string($encoded)) { + parse_str($encoded, $datas); + $this->hydrate($datas); } - $this->hydrate($datas); } |