Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
function set_formato_data($f)
{
    MySQLPersistence::$formato_data = $f;
}