-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.php
More file actions
352 lines (239 loc) · 19.1 KB
/
hello.php
File metadata and controls
352 lines (239 loc) · 19.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<html>
<head>
<meta charset="utf-8">
<title>PHP Test</title>
</head>
<body>
<?php
include 'app_config.php';
$json = file_get_contents("test.json");
echo '\n \ngeryes test 1\n \n'
//echo($json);
// echo "<table>";
// $jsonIterator = new RecursiveIteratorIterator(new RecursiveArrayIterator(json_decode($json, TRUE)), RecursiveIteratorIterator::SELF_FIRST);
// foreach ($jsonIterator as $key => $val) {
// echo "<tr>";
// if(is_array($val)) {
// echo "<td>" . "$key:\n" . "</td>";
// } else {
// echo "<td>" . "$key => $val\n" . "</td>";
// }
// echo "</tr>";
// }
// echo "</table>";
/*
* PHP SOAP - How to create a SOAP Server and a SOAP Client
*/
/*$options = array('location' => 'http://localhost:8888/webservice.php',
'uri' => 'http://localhost:8888/');
//create an instante of the SOAPClient (the API will be available)
$api = new SoapClient(NULL, $options);
$result = $api->db_select("USERS");
echo "<table>";
$jsonIterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($result), RecursiveIteratorIterator::SELF_FIRST);
foreach ($jsonIterator as $key => $val) {
echo "<tr>";
if(is_array($val)) {
echo "<td>" . "$key:\n" . "</td>";
} else {
echo "<td>" . "$key => $val\n" . "</td>";
}
echo "</tr>";
}
echo "</table>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo json_encode($result);*/
//echo 'geryes';
// $tem = users::add_new_user('name', 'last_name', 'geryes1', 'asdads', 'aaa', 'ss', '1');
// var_dump($tem);
// $tem = users::add_new_user('name', 'last_name', 'geryes1', 'asdads', 'aaa', 'sss', '1');
// var_dump($tem);
debugLog::important_log("START");
// $temp = scope::add_new_scope('title 1', 'description asdasdasd', '2');
$dbObj = new dbAPI();
// $temp = scope::get_scope_by_UID(1);
// echo $dbObj->print_json($temp);
// print_r($dbObj->run_query($dbObj->db_get_usersDB(), "select * from users"));
// echo $temp;
// $temp = users::validate_username_password('antoon91', 'pass35');
// echo "1: "; echo $dbObj->print_json($temp);
// // $temp = users::log_out('antoon91');
// $temp = users::change_password('antoon91', 'pass35', 'pass5');
// echo "2: "; echo $dbObj->print_json($temp);
// echo "<br>";
// $temp = users::validate_token('ZqnM8meaBokhTupMaWa27ro9rmJdT35StsFBOTMpi6GbB6XM28Pazdj0z3es6jlzM0bAUY0c4HoFNmsQuh13uk33niwuCR4oSfZM');
// echo $dbObj->print_json($temp);
// $temp = users::validate_username_password('antoon91', 'pass3');
// echo $dbObj->print_json($temp);
// var_dump($tem);
// echo $dbObj->get_latest_UID($dbObj->db_get_usersDB(), 'users');
// $dbObj->db_update('11es');
// echo $temp2 . '<br>';
// $dbObj->print_table($results);
// $dbObj->print_json($results);
/*==============================================================
================================================================
====================== Testing terms ===========================
================================================================
==============================================================*/
//add_new_term_with_scope_and_meaning($term_text, $lang, $user, $scope_UID = '', $meaning_text = '')
// -- $ter = term::add_new_term_with_scope_and_meaning("C++", "en", 2);
// -- $ter = term::add_new_term_with_scope_and_meaning("C#", "en", 2, "0");
// -- $ter = term::add_new_term_with_scope_and_meaning("C#", "en", 2, "0", "C kteer sharp");
//add_new_meaning_under_new_scope($termUID, $lang, $user, $scope_text = '', $scope_desc, $meaning_text = '')
// $ter = term::add_new_meaning_under_new_scope('1', 'en', '2', 'OOP', 'Object Oriented Programming', 'جريس واكل الجو');
// public static function add_new_scope_under_specific_meaning($termUID, $meaningUID, $user, $scope_text = '', $scope_desc)
// $ter = term::add_new_scope_under_specific_meaning('2', '3', '2', 'Java', 'Java like language');
// public static function edit_meaning($relationUID, $new_meaning, $lang)
// $ter = term::edit_meaning('4', 'arabic shit shit' . date("d-m-y h:i:s") , 'en');
// public static function add_sysnonym($scope_UID, $term_UID, $new_meaning, $lang, $user)
// $ter = term::add_sysnonym('4', 2, 'arabic shit shit' . date("d-m-y h:i:s"), 'en', 2);
// $ter = term::add_sysnonym('4', 3, 'arabic shit shit' . date("d-m-y h:i:s"), 'ar', 3); ==> should fail
// public static function add_translation_to_term($term_UID, $text, $lang, $user)
// $ter = term::add_translation_to_term(2, 'arabicccc', 'ar', 2);
// public static function add_translation_to_term_meaning($meaning_UID, $text, $lang, $user)
// $ter = term::add_translation_to_term_meaning(5, "meaning in arabic", 'ch', 1);
// $dbObj->print_json($ter);
// add_relation_to_scope($parent_scope_UID, $child_scope_UID, $is_hier);
// debugLog::important_log(dbAPI::print_json_s(scope::add_relation_to_scope(1, 1, 0, 2), 0));
// debugLog::important_log(dbAPI::print_json_s(scope::get_scope_by_UID_with_relations(4, 'ar'), 0));
// debugLog::important_log(dbAPI::print_json_s(term::add_relation_to_terms(1, 2, 0, 2), 0));
// debugLog::important_log(dbAPI::print_json_s(term::get_relations_of_term(1, 'en'), 0));
// debugLog::important_log(dbAPI::print_json_s(term::get_term_by_UID_with_relations(2), 0));
//
/*==============================================================
================================================================*/
$u = $dbObj->db_get_usersDB();
$c = $dbObj->db_get_contentDB();
$tempArr = array($u.'.KBIT_BASE', $u.'.KBIT_FRONT', $c.'.KBIT_BASE', $c.'.KBIT_FRONT',
$u.'.DELIVERY_BASE', $u.'.DELIVERY_FRONT', $c.'.DELIVERY_BASE', $c.'.DELIVERY_FRONT',
$u.'.R_LD2D', $u.'.R_LK2K', $c.'.R_LD2D', $c.'.R_LK2K',
$u.'.R_LD2T', $u.'.R_LK2T', $c.'.R_LD2T', $c.'.R_LK2T',
$u.'.R_LD2K', $c.'.R_LD2K',
$c.'.CONTENT_LOCK');
dbAPI::delete_all($tempArr);
$front = array('FRONT_TYPE'=>'KBIT_FRONT', 'PATH'=>'http://google.com');
// debugLog::important_log(dbAPI::print_json_s(Kbit::add_new_Kbit_in_edit_mode("first kbit title (base)", "first Kbit description (base)", 2, $front), 0));
// Kbit::begin_editing_kbit(1, 1);
// Kbit::publish_changes(1,1);
// Lock::acquire_lock(2, 'abc', 3);
// Lock::release_lock(2, 'abc', 3);
// Kbit::cancel_edited_kbit(1, 1);
//
$arr = array("column_name"=>'DELIVERY_BASE_ID', "value"=>5);
// $arr["column_name"] = 'DELIVERY_BASE_ID';
// $arr["value"] = '20';
// debugLog::important_log("<i>[hello.php:test]</i> " . dbAPI::print_json_s($arr ,0));
debugLog::important_log("<i>[hello.php:testing]</i> add 4 new deliveries");
$deliveryfront1 = array('FRONT_TYPE'=>'DELIVERY_FRONT', 'PATH'=>'http://youtube1.com');
$deliveryfront2 = array('FRONT_TYPE'=>'DELIVERY_FRONT', 'PATH'=>'http://youtube2.com');
$deliveryfront3 = array('FRONT_TYPE'=>'DELIVERY_FRONT', 'PATH'=>'http://youtube3.com');
$deliveryfront4 = array('FRONT_TYPE'=>'DELIVERY_FRONT', 'PATH'=>'http://youtube4.com');
debugLog::log("<i>[hello.php:function]</i> Added delivery: " . dbAPI::print_json_s($delivery1 = Delivery::add_new_Delivery_in_edit_mode('Delivery 1', 'description 1', 1, $deliveryfront1), 0));
debugLog::log("<i>[hello.php:function]</i> Added delivery: " . dbAPI::print_json_s($delivery2 = Delivery::add_new_Delivery_in_edit_mode('Delivery 2', 'description 2', 1, $deliveryfront2), 0));
debugLog::log("<i>[hello.php:function]</i> Added delivery: " . dbAPI::print_json_s($delivery3 = Delivery::add_new_Delivery_in_edit_mode('Delivery 3', 'description 3', 1, $deliveryfront3), 0));
debugLog::log("<i>[hello.php:function]</i> Added delivery: " . dbAPI::print_json_s($delivery4 = Delivery::add_new_Delivery_in_edit_mode('Delivery 4', 'description 4', 1, $deliveryfront4), 0));
if($delivery1 == null){
debugLog::important_log("<i>[hello.php:testing adding deliveries]</i> error adding deliveries");
return;
}
debugLog::important_log("<i>[hello.php:testing]</i> publishing 4 recently added deliveries");
debugLog::log("<i>[hello.php:testing publish delivery1]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery1["UID"], 2), 0));
debugLog::log("<i>[hello.php:testing publish delivery1]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery1["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish delivery2]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery2["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish delivery3]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery3["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish delivery4]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery4["UID"], 1), 0));
debugLog::important_log("<i>[hello.php:testing]</i> editing 4 deliveries");
debugLog::log("<i>[hello.php:testing edit delivery1]</i> result: ". var_dump(Delivery::begin_editing_Delivery($delivery1["UID"], 1)));
debugLog::log("<i>[hello.php:testing edit delivery2]</i> result: ". var_dump(Delivery::begin_editing_Delivery($delivery2["UID"], 2)));
// debugLog::log("<i>[hello.php:testing edit delivery3]</i> result: ". var_dump(Delivery::begin_editing_Delivery($delivery3["UID"], 1)));
// debugLog::log("<i>[hello.php:testing edit delivery4]</i> result: ". var_dump(Delivery::begin_editing_Delivery($delivery4["UID"], 1)));
debugLog::important_log("<i>[hello.php:testing]</i> testing delivery relations D2D");
debugLog::log("<i>[hello.php:testing relation D2D delivery1=>2 user 1]</i> result: ". dbAPI::print_json_s(Delivery::add_D2D_relation($delivery1["UID"], $delivery2["UID"], true, 1), 0)); // fails
debugLog::log("<i>[hello.php:testing relation D2D delivery1=>2 user 2]</i> result: ". dbAPI::print_json_s(Delivery::add_D2D_relation($delivery1["UID"], $delivery2["UID"], true, 2), 0)); // fails
debugLog::log("<i>[hello.php:testing relation D2D delivery1=>2]</i> result: ". dbAPI::print_json_s(Delivery::add_D2D_relation($delivery3["UID"], $delivery4["UID"], true, 1), 0)); // fails
debugLog::log("<i>[hello.php:testing relation D2D delivery1=>2]</i> result: ". dbAPI::print_json_s(Delivery::add_D2D_relation($delivery1["UID"], $delivery3["UID"], true, 1), 0)); // succeed
debugLog::important_log("<i>[hello.php:testing]</i> add 4 new kbits");
$kbitfront1 = array('FRONT_TYPE'=>'KBIT_FRONT', 'PATH'=>'http://google1.com');
$kbitfront2 = array('FRONT_TYPE'=>'KBIT_FRONT', 'PATH'=>'http://google2.com');
$kbitfront3 = array('FRONT_TYPE'=>'KBIT_FRONT', 'PATH'=>'http://google3.com');
$kbitfront4 = array('FRONT_TYPE'=>'KBIT_FRONT', 'PATH'=>'http://google4.com');
debugLog::log("<i>[hello.php:function]</i> Added kbit: " . dbAPI::print_json_s($kbit1 = Kbit::add_new_Kbit_in_edit_mode('Kbit 1', 'description 1', 1, $kbitfront1), 0));
debugLog::log("<i>[hello.php:function]</i> Added kbit: " . dbAPI::print_json_s($kbit2 = Kbit::add_new_Kbit_in_edit_mode('Kbit 2', 'description 2', 1, $kbitfront2), 0));
debugLog::log("<i>[hello.php:function]</i> Added kbit: " . dbAPI::print_json_s($kbit3 = Kbit::add_new_Kbit_in_edit_mode('Kbit 3', 'description 3', 1, $kbitfront3), 0));
debugLog::log("<i>[hello.php:function]</i> Added kbit: " . dbAPI::print_json_s($kbit4 = Kbit::add_new_Kbit_in_edit_mode('Kbit 4', 'description 4', 1, $kbitfront4), 0));
if($kbit1 == null){
debugLog::important_log("<i>[hello.php:testing adding kbits]</i> error adding kbits");
return;
}
debugLog::important_log("<i>[hello.php:testing]</i> publishing 4 recently added kbits");
debugLog::log("<i>[hello.php:testing publish kbit1]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit1["UID"], 2), 0));
debugLog::log("<i>[hello.php:testing publish kbit1]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit1["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish kbit2]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit2["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish kbit3]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit3["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish kbit4]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit4["UID"], 1), 0));
debugLog::important_log("<i>[hello.php:testing]</i> editing 4 kbits");
debugLog::log("<i>[hello.php:testing edit kbit1]</i> result: ". var_dump(Kbit::begin_editing_kbit($kbit1["UID"], 1)));
// debugLog::log("<i>[hello.php:testing edit kbit2]</i> result: ". var_dump(Kbit::begin_editing_kbit($kbit2["UID"], 1)));
debugLog::log("<i>[hello.php:testing edit kbit3]</i> result: ". var_dump(Kbit::begin_editing_kbit($kbit3["UID"], 2)));
// debugLog::log("<i>[hello.php:testing edit kbit4]</i> result: ". var_dump(Kbit::begin_editing_kbit($kbit4["UID"], 1)));
debugLog::important_log("<i>[hello.php:testing]</i> testing kbits relations K2K");
debugLog::log("<i>[hello.php:testing relation K2K KBIT1=>2 user 1]</i> result: ". dbAPI::print_json_s(Kbit::add_K2K_relation($kbit1["UID"], $kbit2["UID"], true, 1), 0)); // succeeds
debugLog::log("<i>[hello.php:testing relation K2K KBIT1=>2 user 2]</i> result: ". dbAPI::print_json_s(Kbit::add_K2K_relation($kbit1["UID"], $kbit2["UID"], true, 2), 0)); // fails
debugLog::log("<i>[hello.php:testing relation K2K KBIT1=>2]</i> result: ". dbAPI::print_json_s(Kbit::add_K2K_relation($kbit3["UID"], $kbit4["UID"], true, 1), 0)); // fails
debugLog::log("<i>[hello.php:testing relation K2K KBIT1=>2]</i> result: ". dbAPI::print_json_s(Kbit::add_K2K_relation($kbit1["UID"], $kbit3["UID"], true, 1), 0)); // fails
// terms
//
debugLog::important_log("<i>[hello.php:testing]</i> testing kbits relations with terms K2T");
debugLog::log("<i>[hello.php:testing relation K2T KBIT]</i> result: ". dbAPI::print_json_s(Kbit::add_K2T_relation($kbit1["UID"], 1, 'link type', 1), 0)); // succeeds
debugLog::log("<i>[hello.php:testing relation K2T KBIT]</i> result: ". dbAPI::print_json_s(Kbit::add_K2T_relation($kbit1["UID"], 2, 'link type33333', 1), 0)); // succeeds
debugLog::log("<i>[hello.php:testing relation K2T KBIT]</i> result: ". dbAPI::print_json_s(Kbit::add_K2T_relation($kbit1["UID"], 3, 'true', 2), 0)); // fails
debugLog::log("<i>[hello.php:testing get K2T KBIT]</i> result: ". dbAPI::print_json_s(Kbit::get_terms_of_Kbit($kbit1["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing get K2T KBIT with lang]</i> result: ". dbAPI::print_json_s(Kbit::get_terms_of_Kbit($kbit1["UID"], 1, 'en'), 0));
debugLog::log("<i>[hello.php:testing get K2T KBIT remove]</i> result: ". dbAPI::print_json_s(Kbit::remove_term_from_Kbit($kbit1["UID"], 1, 'link type1', 1), 0)); // fails
debugLog::log("<i>[hello.php:testing get K2T KBIT remove]</i> result: ". dbAPI::print_json_s(Kbit::remove_term_from_Kbit($kbit1["UID"], 1, 'link type', 2), 0)); // fails
debugLog::log("<i>[hello.php:testing get K2T KBIT remove]</i> result: ". dbAPI::print_json_s(Kbit::remove_term_from_Kbit($kbit1["UID"], 1, 'link type', 1), 0)); // succeeds
debugLog::log("<i>[hello.php:testing get K2T KBIT after remove]</i> result: ". dbAPI::print_json_s(Kbit::get_terms_of_Kbit($kbit1["UID"], 1), 0));
debugLog::important_log("<i>[hello.php:testing]</i> testing deliveries relations with terms D2T");
debugLog::log("<i>[hello.php:testing relation D2T DELIVERY]</i> result: ". dbAPI::print_json_s(Delivery::add_D2T_relation($delivery1["UID"], 1, 'link type', 1), 0)); // succeeds
debugLog::log("<i>[hello.php:testing relation D2T DELIVERY]</i> result: ". dbAPI::print_json_s(Delivery::add_D2T_relation($delivery1["UID"], 2, 'true', 1), 0)); // fails
debugLog::log("<i>[hello.php:testing get D2T DELIVERY]</i> result: ". dbAPI::print_json_s(Delivery::get_terms_of_Delivery($delivery1["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing get D2T DELIVERY with lang]</i> result: ". dbAPI::print_json_s(Delivery::get_terms_of_Delivery($delivery1["UID"], 1, 'en'), 0));
debugLog::log("<i>[hello.php:testing get D2T DELIVERY remove]</i> result: ". dbAPI::print_json_s(Delivery::remove_term_from_Delivery($delivery1["UID"], 1, 'link tddype1', 1), 0)); // fails
debugLog::log("<i>[hello.php:testing get D2T DELIVERY remove]</i> result: ". dbAPI::print_json_s(Delivery::remove_term_from_Delivery($delivery1["UID"], 1, 'link ddtype', 2), 0)); // fails
debugLog::log("<i>[hello.php:testing get D2T DELIVERY remove]</i> result: ". dbAPI::print_json_s(Delivery::remove_term_from_Delivery($delivery1["UID"], 1, 'link type', 1), 0)); // succeeds
debugLog::log("<i>[hello.php:testing get D2T DELIVERY after remove]</i> result: ". dbAPI::print_json_s(Delivery::get_terms_of_Delivery($delivery1["UID"], 1), 0));
// publish all
debugLog::important_log("<i>[hello.php:PUBLISHING KBITS]</i> PUBLISHING KBITS");
debugLog::important_log("");
debugLog::log("<i>[hello.php:testing publish kbit1]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit1["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish kbit3]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit3["UID"], 2), 0));
debugLog::important_log("<i>[hello.php:PUBLISHING DELIVERIES]</i> PUBLISHING DELIVERIES");
debugLog::important_log("");
debugLog::log("<i>[hello.php:testing publish delivery1]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery1["UID"], 1), 0));
debugLog::log("<i>[hello.php:testing publish delivery2]</i> result: ". dbAPI::print_json_s(Delivery::publish_changes($delivery2["UID"], 2), 0));
// all published
// pull again required to edit
debugLog::important_log("<i>[hello.php:testing]</i> testing deliveries relations with kbits D2K");
// re-edit
debugLog::log("<i>[hello.php:testing edit kbit1]</i> result: ". var_dump(Kbit::begin_editing_kbit($kbit1["UID"], 1)));
debugLog::log("<i>[hello.php:testing edit kbit1]</i> result: ". var_dump(Kbit::begin_editing_kbit($kbit2["UID"], 1)));
debugLog::log("<i>[hello.php:testing edit delivery1]</i> result: ". var_dump(Delivery::begin_editing_Delivery($delivery1["UID"], 1)));
// add relation between delivery and kbit
debugLog::log("<i>[hello.php:testing relation between delivery and kbit]</i> result: ". dbAPI::print_json_s(Delivery::add_Kbit_to_delivery($kbit1["UID"], $delivery1["UID"], 'NEEDED', 0, 1), 0));
debugLog::log("<i>[hello.php:testing relation between delivery and kbit]</i> result: ". dbAPI::print_json_s(Delivery::add_Kbit_to_delivery($kbit2["UID"], $delivery1["UID"], 'PROVIDED', 0, 1), 0));
// edit kbit1
debugLog::log("<i>[hello.php:testing updateing kbit1]</i> result: ". dbAPI::print_json_s(Kbit::add_new_edit_for_kbit($kbit1["UID"], 'new title for kbit 1', 'new description for kbit1', 1, $kbit1["FRONT_KBIT"]), 0));
debugLog::log("<i>[hello.php:testing updateing kbit2]</i> result: ". dbAPI::print_json_s(Kbit::add_new_edit_for_kbit($kbit2["UID"], 'new title for kbit 2', 'new description for kbit2', 1, $kbit2["FRONT_KBIT"]), 0));
// publish kbit1
// debugLog::log("<i>[hello.php:testing publish kbit1]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit1["UID"], 1), 0));
// debugLog::log("<i>[hello.php:testing publish kbit1]</i> result: ". dbAPI::print_json_s(Kbit::publish_changes($kbit2["UID"], 1), 0));
// get kbits of delivery
debugLog::log("<i>[hello.php:testing get kbits of delivery]</i> result: ". dbAPI::print_json_s(Delivery::get_Kbit_of_delivery($delivery1["UID"], 1), 0));
debugLog::important_log("DONE");
debugLog::important_log("<BR><b> - FIX REVISION <br> - ONLY THE LAST TO BE PUBLISHED UPDATES THE RELATION RECORD</b>");
?>
</body>
</html>