dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
dbxPage_edit.class.php
Go to the documentation of this file.
1
<?php
2
namespace
dbx\dbxPage_admin;
3
4
class
dbxPage_edit
{
5
6
private
function
edit_api() {
7
8
$content=
''
; $ok=
false
;
9
$rid=
dbx
()->get_modul_var(
'rid'
,0,
'int'
);
10
$dd=
'dbx_api'
;
11
12
$db
=
dbx
()->get_system_obj(
'dbxDB'
);
13
$data=
$db
->select1($dd,$rid);
14
15
16
//return $content;
17
$oForm=
dbx
()->get_system_obj(
'dbxForm'
);
18
$oForm->init(
'form-api'
);
19
$oForm->_dd = $dd;
20
$oForm->_data = $data;
21
$oForm->_msg_info=
'Sie können die Api Aufrufe bearbeiten'
;
22
$oForm->_action =
'?dbx_modul=dbxPage_admin&dbx_run1=edit&rid='
.$rid;
23
24
$oForm->add_fld(
'api'
,
'text-label'
);
// #+
25
$oForm->add_fld(
'apikey'
,
'text-label'
);
// #+
26
$oForm->add_fld(
'modul'
,
'text-label'
);
// #+
27
$oForm->add_fld(
'action'
,
'text-label'
);
// #+
28
$oForm->add_fld(
'work'
,
'text-label'
);
// #+
29
$oForm->add_fld(
'count'
,
'text-label'
);
// #+
30
$oForm->add_fld(
'max'
,
'text-label'
);
// #+
31
32
if
($oForm->submit()) {
33
if
(!$oForm->errors() && !$oForm->warnings()) {
// submit && no errors && no warnings
34
$change=$oForm->changed();
35
if
($change) {
36
$ok=$oForm->save_post($dd,$rid);
37
if
( $ok) $oForm->_msg_success =
'Daten gespeichert'
;
38
if
(!$ok) $oForm->_msg_success =
'Daten konnten nicht gespeichert werden'
;
39
}
else
{
40
$oForm->_msg_success =
'Keine Änderung'
;
41
}
42
$oForm->_msg_success .=
" Change=($change)"
;
43
}
else
{
44
$oForm->_msg_errr =
'Prüfen sie bitte ihre Eingaben'
;
45
}
46
}
47
$content=$oForm->run();
48
49
return
$content;
50
51
}
52
53
54
public
function
run
() {
55
$uid =
dbx
()->user();
56
$mid =
dbx
()->get_system_var(
'dbx_modul_id'
);
57
$modul =
dbx
()->get_system_var(
'dbx_modul'
);
58
$work =
dbx
()->get_modul_var(
'dbx_run2'
,
''
,
'parameter'
);
59
60
$content=$this->edit_api();
61
62
return
$content;
63
}
// run()
64
65
}
// class
66
67
?>
dbx\dbxPage_admin\dbxPage_edit
Definition
dbxPage_edit.class.php:4
dbx\dbxPage_admin\dbxPage_edit\run
run()
Definition
dbxPage_edit.class.php:54
dbx
DBX schema administration.
$db
$db
Definition
run_context_help_provision.php:38
dbx
modules
dbxPage_admin
include
dbxPage_edit.class.php
Generated by
1.17.0