<?php class test { private $json; private $config; private $xmlFiles; private $modifiedElement; private $modifiedElement2; private $exchangeValue; private $exchangeValue2; private $inputFolderPath; private $outputFolderPath; private $outputFileName; public function __construct() { //$this->setXmlFiles(); //$this->createFolder(); $this->json = '{ "modifiedElement1" : "11", "modifiedElement2" : "22", "exchangeValue1" : "11", "exchangeValue2" : "333", "inputFolderPath" : "input/", "outputFolderPath" : "output/" }'; $this->config = json_decode($this->json); $this->xmlFiles = array(); $this->modifiedElement = $this->config->modifiedElement1; $this->modifiedElement2 = $this->config->modifiedElement2; $this->exchangeValue = $this->config->exchangeValue1; $this->exchangeValue2 = $this->config->exchangeValue2; $this->inputFolderPath = $this->config->inputFolderPath; $this->outputFolderPath = $this->config->outputFolderPath; $this->outputFileName = null; var_dump($this); } } $x = new test();
You have javascript disabled. You will not be able to edit any code.