diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-17 00:02:21 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-17 00:02:21 +0200 |
commit | 0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2 (patch) | |
tree | 976e3466be56ab81969d9ea30604c35f58102c70 /app/class/optlist.php | |
parent | b5ebee8dea28e3a9c5160de1c56f7715153f3af4 (diff) | |
download | wcms-0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2.tar.gz wcms-0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2.zip |
Feature : list is going to work soon
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); } |