dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxAdmin.class.php
Go to the documentation of this file.
1<?php
2namespace dbx\dbxAdmin;
3Class dbxAdmin {
4
5
6 public function run() {
7 $content='';
8 $uid =dbx()->user();
9 $mid =dbx()->get_system_var('dbx_modul_id');
10 $modul =dbx()->get_system_var('dbx_modul');
11 $oTPL =dbx()->get_system_obj('dbxTPL');
12
13
14 $action=dbx()->get_modul_var('dbx_run1','run');
15
16 switch ($action) {
17
18
19
20 case 'run':
21 case 'dashboard':
22 $obj=dbx()->get_include_obj('dbxDashboard');
23 $content=$obj->run();
24 break;
25
26
27
28 case 'design':
29 $obj=dbx()->get_include_obj('dbxDesign');
30 $content=$obj->run();
31 break;
32
33 case 'modul':
34 $obj=dbx()->get_include_obj('dbxModul');
35 $content=$obj->run();
36 break;
37
38
39 case 'menu':
40 $obj=dbx()->get_include_obj('dbxMenu');
41 $content=$obj->run();
42 break;
43
44 case 'edit_dd':
45 $obj=dbx()->get_include_obj('dbxEdit_dd');
46 $content=$obj->run();
47 break;
48
49 case 'edit_fd':
50 $obj=dbx()->get_include_obj('dbxEdit_fd');
51 $content=$obj->run();
52 break;
53
54
55 case 'dd':
56 $obj=dbx()->get_include_obj('dbxSchema');
57 $content=$obj->run('dd');
58 break;
59
60 case 'db':
61 $obj=dbx()->get_include_obj('dbxSchema');
62 $content=$obj->run('db');
63 break;
64
65 case 'dd_bindings':
66 $obj=dbx()->get_include_obj('dbxDDServerBindings');
67 $content=$obj->run();
68 break;
69
70 case 'missing':
71 $obj=dbx()->get_include_obj('dbxMissing');
72 $content=$obj->run();
73 break;
74
75 case 'trace':
76 $obj=dbx()->get_include_obj('dbxTrace');
77 $content=$obj->run();
78 break;
79
80
81 case 'sysmsg':
82 $obj=dbx()->get_include_obj('dbxSysMsg');
83 $content=$obj->run();
84 break;
85
86
87 case 'modules':
88 $obj=dbx()->get_include_obj('dbxModules');
89 $content=$obj->run('modules');
90 break;
91
92 case 'config':
93 $obj=dbx()->get_include_obj('dbxConfig');
94 $content=$obj->run('modules');
95 break;
96
97 // - - - -
98 case 'session':
99 $obj=dbx()->get_include_obj('dbxSession');
100 $content=$obj->run();
101 break;
102
103 case 'cache':
104 $obj=dbx()->get_include_obj('dbxPageCache');
105 $content=$obj->run();
106 break;
107
108 case 'update':
109 $obj=dbx()->get_include_obj('dbxUpdate');
110 $content=$obj->run();
111 break;
112
113 case 'help':
114 $obj=dbx()->get_include_obj('dbxContentContextHelp', 'dbxContent');
115 $content=is_object($obj) ? $obj->run() : '';
116 break;
117
118
119
120 case 'user':
121 $obj=dbx()->get_include_obj('dbxUser');
122 $content=$obj->run('user');
123 break;
124
125 case 'contact':
126 $obj=dbx()->get_include_obj('dbxContactAdmin','dbxContact_admin');
127 $content=$obj->run();
128 break;
129
130
131
132 case 'export_sql': // logoff
133 $obj=dbx()->get_include_obj('dbxSQLdump');
134 $content=$obj->run('export');
135 break;
136
137 case 'server':
138 $obj=dbx()->get_include_obj('dbxServer');
139 $content=$obj->run();
140 break;
141
142
143 case 'datadic':
144 $obj=dbx()->get_include_obj('dbxDataDic');
145 $content=$obj->run();
146 break;
147
148
149 case '_edittpl': // edit TPL
150 dbx()->set_system_var('tpleditor',1);
151 dbx()->set_system_var('dbx_page','_tpledit');
152 $obj=dbx()->get_include_obj('dbxTplEdit');
153 $content=$obj->run();
154 break;
155
156 case '_editpage': // edit TPL
157 dbx()->set_system_var('tpleditor',2);
158 dbx()->set_system_var('dbx_page','_pageedit');
159 $obj=dbx()->get_include_obj('dbxPageEdit');
160 $content=$obj->run();
161 break;
162
163
164
165 default:
166 $oTPL=dbx()->get_system_obj('dbxTPL');
167 $msg['msg']="Modul=($modul) Action=($action) is undef.";
168 $content=$oTPL->get_tpl('dbx|alert-warning',$msg);
169 }
170
171
172 return $content;
173 }
174}
DBX schema administration.