Пример #1
0
 public function insertRecords()
 {
     $t1 = _hx_deref(new zcale_sys_db_tests_zcale_Naw())->voornaam->set("Adrian")->naam->set("Martinez")->straat->set("Bolacaciahof 25")->postcode->set("1324AL")->plaats->set("Almere");
     $t2 = _hx_deref(new zcale_sys_db_tests_zcale_Naw())->voornaam->set("Esmee")->naam->set("Riemens")->straat->set("Bolacaciahof 25")->postcode->set("1234AL")->plaats->set("Almere");
     $t3 = _hx_deref(new zcale_sys_db_tests_zcale_Naw())->voornaam->set("Esmee")->naam->set("Riemens")->straat->set("Somewhere")->postcode->set("???????")->plaats->set("Almere");
     $sql = null;
     $this1 = null;
     $this2 = null;
     $this3 = null;
     $this4 = zcale_sys_db__Sql_MainOperation_Impl_::insert("", $t1, $t1->getKeys());
     $v = $t1->getValues();
     $str = _hx_string_or_null($this4) . " VALUES (" . _hx_string_or_null(zcale_sys_db_SqlTools::joinValues($v)) . ")";
     $this3 = $str;
     $v1 = $t2->getValues();
     $str1 = _hx_string_or_null($this3) . ",(" . _hx_string_or_null(zcale_sys_db_SqlTools::joinValues($v1)) . ")";
     $this2 = $str1;
     $v2 = $t3->getValues();
     $str2 = _hx_string_or_null($this2) . ",(" . _hx_string_or_null(zcale_sys_db_SqlTools::joinValues($v2)) . ")";
     $this1 = $str2;
     $sql = $this1;
     $this->cnx->request($sql);
     Sys::hprint("<br/>Records inserted in " . Std::string($t1) . ": " . _hx_string_or_null($sql));
 }