/** * Saving configuration in .conf file * */ static function saveConf() { $configFile = fopen(dirname(__FILE__) . '/facturacom.conf', 'w') or die('Unable to open file!'); //write apiKey fwrite($configFile, WrapperHelper::strEncode(self::$apiKey) . "\n"); //write apiSecret fwrite($configFile, WrapperHelper::strEncode(self::$apiSecret) . "\n"); //write serie fwrite($configFile, WrapperHelper::strEncode(self::$serie) . "\n"); //write dayOff fwrite($configFile, WrapperHelper::strEncode(self::$dayOff) . "\n"); //write activateDay fwrite($configFile, WrapperHelper::strEncode(self::$activateDate) . "\n"); //write apiUrl fwrite($configFile, WrapperHelper::strEncode(self::$apiUrl) . "\n"); //write version fwrite($configFile, WrapperHelper::strEncode(self::$version) . "\n"); //write access fwrite($configFile, WrapperHelper::strEncode(self::$access) . "\n"); //write systemURL fwrite($configFile, WrapperHelper::strEncode(self::$systemURL) . "\n"); //write iva fwrite($configFile, WrapperHelper::strEncode(self::$iva)); fclose($configFile); }