Example #1
0
 function __loadColoreDipinto($id_dipinto, $id_colore)
 {
     $ii = new __MysqlInsert("test_tab_colori_dipinto");
     $ii->add("id_dipinto", $id_dipinto);
     $ii->add("id_colore", $id_colore);
     $ii->exec();
 }
 function import_data($data)
 {
     $xml_reader = new SimpleXMLElement($data);
     $table_attribs = $xml_reader->attributes();
     $table_name = $table_attribs["name"];
     if ($xml_reader->getName() == "table") {
         foreach ($xml_reader->row as $row) {
             $ii = new __MysqlInsert($table_name);
             foreach ($row->field as $field) {
                 $ii->add($field["name"], "" . $field);
             }
             $ii->exec();
         }
     } else {
         throw new IOException("Tabella da importare non compatibile col file");
     }
 }
Example #3
0
 function __loadData($id, $nome, $livello, $properties, $date, $working)
 {
     $ii = new __MysqlInsert("simple2_table");
     $ii->add("id", $id);
     $ii->add("nome", $nome);
     $ii->add("livello", $livello);
     $ii->add("properties", $properties);
     $ii->add("data_inserimento", $date);
     $ii->add("working", $working);
     $ii->exec();
 }
Example #4
0
 private function __loadData($id, $nome, $livello, $properties = null)
 {
     $ii = new __MysqlInsert("impiegati");
     $ii->add("id", $id);
     $ii->add("nome", $nome);
     $ii->add("livello", $livello);
     if ($properties != null) {
         $ii->add("properties", $properties);
     }
     $ii->exec();
 }
Example #5
0
 private function __loadData($id, $nome, $livello, $properties = null)
 {
     $ii = new __MysqlInsert("another_tab_bites_the_dust");
     $ii->add("id", $id);
     $ii->add("nome", $nome);
     $ii->add("livello", $livello);
     if ($properties != null) {
         $ii->add("properties", $properties);
     }
     $ii->exec();
 }