Esempio n. 1
0
 public function SetNewConfig($config, $path = null)
 {
     if ($path == null) {
         $path = "";
     }
     $json_class = new \SivarApi\Tools\Json_class();
     $path = $path . "config.json";
     $json_class->JsonFile($path);
     $json_class->SaveNewJasonFile($config, $path);
 }
Esempio n. 2
0
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
include '/Conf/Include.php';
$jason_ = new \SivarApi\Tools\Json_class();
$jason_->JsonFile('file/example.json');
print_r($jason_->GetDecodeJsonFile());