/** * Parse the Configuration XML for the job being run * Database and infrastructure settings here * as well as individual website settings */ function setConfig($value) { libxml_use_internal_errors(true); $xml = simplexml_load_file($value); if ($xml === false) { echo "Failed loading XML\n"; } else { $json = json_encode($xml); self::$configarray = json_decode($json, TRUE); } }