From: vincent@cubedesigners.com Date: Tue, 11 May 2021 16:21:44 +0000 (+0000) Subject: wip #4216 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=91a094ffc424c31b97b79429d75ee8b5f7e0f191;p=cubeextranet.git wip #4216 @1 --- diff --git a/inc/ws/Metier/class.ws.parametres.php b/inc/ws/Metier/class.ws.parametres.php index bea7edc55..adb586bc9 100644 --- a/inc/ws/Metier/class.ws.parametres.php +++ b/inc/ws/Metier/class.ws.parametres.php @@ -17,6 +17,11 @@ class wsParametres extends cubeMetier implements Iterator $this->setDefaultValues(); } + public function importFromJson($jsonString) + { + $this->datas = json_decode($jsonString, true); + } + public function isEmpty() { return count($this->datas) == 0;