1 |
37264
|
eri.katsar
|
<?php
|
2 |
|
|
require_once('controller.php');
|
3 |
|
|
$controller = new Controller(false);
|
4 |
|
|
if(isset($_GET['com'])) {
|
5 |
|
|
switch($_GET['com']) {
|
6 |
|
|
case "measMetadata":
|
7 |
|
|
$controller->COM_getMeasMetadata();
|
8 |
|
|
break;
|
9 |
|
|
case "defaultChartSelections":
|
10 |
|
|
$controller->COM_defaultChart();
|
11 |
|
|
break;
|
12 |
|
|
case "filterData":
|
13 |
|
|
$controller->COM_getFilterData();
|
14 |
|
|
break;
|
15 |
|
|
case "query":
|
16 |
|
|
$controller->COM_makeQuery();
|
17 |
|
|
break;
|
18 |
|
|
case "read":
|
19 |
|
|
$controller->COM_read();
|
20 |
|
|
break;
|
21 |
|
|
case "check_fact":
|
22 |
|
|
$controller->COM_check_fact();
|
23 |
|
|
break;
|
24 |
|
|
case "list_of_dim_names":
|
25 |
|
|
$controller->COM_list_of_dim_names();
|
26 |
|
|
break;
|
27 |
|
|
case "searchWarehousebyDims":
|
28 |
|
|
$controller->COM_search_warehouse_by_dims();
|
29 |
|
|
break;
|
30 |
|
|
case "create_fact_table":
|
31 |
|
|
$controller->COM_create_new_fact_table();
|
32 |
|
|
break;
|
33 |
|
|
case "list_of_facts":
|
34 |
|
|
$controller->COM_list_of_fact_tables();
|
35 |
|
|
break;
|
36 |
|
|
case "list_of_meas":
|
37 |
|
|
$controller->COM_list_of_meas();
|
38 |
|
|
break;
|
39 |
|
|
case "list_of_dims":
|
40 |
|
|
$controller->COM_list_of_dims();
|
41 |
|
|
break;
|
42 |
|
|
case "add_meas":
|
43 |
|
|
$controller->COM_add_meas();
|
44 |
|
|
break;
|
45 |
|
|
case "meas_range_data":
|
46 |
|
|
$controller->COM_meas_range_data();
|
47 |
|
|
break;
|
48 |
|
|
case "get_dims_fields_list":
|
49 |
|
|
$controller->COM_get_dims_fields_list();
|
50 |
|
|
break;
|
51 |
|
|
case "get_schema":
|
52 |
|
|
$controller->COM_get_schema();
|
53 |
|
|
break;
|
54 |
|
|
case "performQuery":
|
55 |
|
|
$controller->COM_performQuery();
|
56 |
|
|
break;
|
57 |
|
|
default:
|
58 |
|
|
echo "unknown command code";
|
59 |
|
|
}
|
60 |
|
|
}
|
61 |
|
|
else {
|
62 |
|
|
//oops error
|
63 |
|
|
echo "no command given";
|
64 |
|
|
}
|
65 |
|
|
//return 0;
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
?>
|
69 |
|
|
|
70 |
|
|
|