public static function getInstance($f) { if (!isset(self::$instance)) { $con = json_decode(file_get_contents($f), true); self::$instance = new MySQLPersistence($con); self::$formato_data = "%d/%m/%Y - %H:%i"; } return self::$instance; }
function set_formato_data($f) { MySQLPersistence::$formato_data = $f; }