Esempio n. 1
0
 static function test_me()
 {
     $cn = new Database(dossier::id());
     $a = new Acc_Tva($cn);
     echo $a->get_info();
     $a->set_parameter("id", 1);
     $a->load();
     $a->set_parameter("id", 0);
     $a->set_parameter("rate", "0.2222");
     $a->set_parameter("label", "test");
     $a->save();
     $a->load();
     print_r($a);
     $a->set_parameter("comment", "un cht'it test");
     $a->save();
     $a->load();
     print_r($a);
     $a->delete();
 }