dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
dbxContent_view.class.php
Go to the documentation of this file.
1
<?php
2
namespace
dbx\dbxContent_admin;
3
4
dbx()->use_system_class(
'dbxView'
);
5
6
class
dbxContent_view
extends
\dbxView
{
7
8
private
function
viewFrameBarReps($tpl, $rid, $i) {
9
$isSaveView = ($tpl ===
'save-view-content'
);
10
11
return
array(
12
'frame_id'
=>
'dbx_target_'
. $i,
13
'frame_panel_class'
=>
'dbxView_wrapper'
,
14
'frame_panel_attrs'
=>
''
,
15
'frame_subbar'
=>
''
,
16
'frame_form_open'
=>
''
,
17
'frame_form_close'
=>
''
,
18
'frame_body_class'
=>
''
,
19
'frame_body_head'
=>
''
,
20
'frame_body_tail'
=>
''
,
21
'bar_class'
=>
'dbx-module-bar'
,
22
'bar_title_class'
=>
'dbx-module-bar-titleblock'
,
23
'bar_actions_class'
=>
'dbx-module-bar-actions'
,
24
'bar_title'
=> $isSaveView ? (
'Content View ('
. (
int
)$rid .
')'
) : (
'Content ID=('
. (
int
)$rid .
')'
),
25
'bar_icon'
=> $isSaveView ?
'bi-eye'
:
'bi-file-earmark-text'
,
26
'bar_subtitle'
=>
''
,
27
'bar_title_pre'
=>
''
,
28
'bar_title_heading_attrs'
=>
''
,
29
'bar_middle'
=>
''
,
30
'bar_extra'
=>
''
,
31
'bar_actions'
=>
''
,
32
);
33
}
34
35
public
function
dbxView_run
() {
36
$i =
dbx
()->next_id();
37
$target =
'dbx_target_'
.$i;
38
39
$id = $this->
get_property
(
'prozess_id'
);
40
$tpl = $this->
get_property
(
'tpl'
);
41
$sync = $this->
get_property
(
'sync'
,
'rid'
);
42
$modul = $this->
get_property
(
'modul'
,
'modul'
);
43
$mode = $this->
get_property
(
'mode'
,
'sync'
);
44
$target = $this->
get_property
(
'target'
,$target);
45
$val =
dbx
()->get_request_var($sync,0,
'int'
);
46
if
($modul ==
'modul'
|| !$modul) $modul=
dbx
()->get_system_var(
'dbx_modul'
,
'dbx'
);
47
48
$dbx_run1=
dbx
()->get_system_var(
'dbx_run1'
,
'run'
);
49
50
$action =
'?dbx_modul='
.$modul.
'&dbx_run1='
.$dbx_run1.
'&'
.$sync.
'='
.$val;
51
$action = $this->
get_property
(
'action'
,$action);
52
53
$vievsys[
'view'
] =$id;
54
$vievsys[
'value'
] =$val;
55
$vievsys[
'mode'
] =$mode;
56
$vievsys[
'modul'
] =$modul;
57
$vievsys[
'target'
]=$target;
58
$vievsys[
'action'
]=$action;
59
60
dbx
()->set_session_var($id,$vievsys,
'view-sys'
,$modul);
61
62
$reps = array(
63
'dbx_view'
=> $id,
64
'dbx_modul'
=> $modul,
65
'dbx_tpl'
=> $tpl,
66
'rid'
=> $val,
67
'i'
=> $i,
68
);
69
$reps = array_merge($reps, $this->viewFrameBarReps($tpl, $val, $i));
70
71
$content=$this->oTPL->get_tpl($modul .
'|'
. $tpl, $reps,
'htm'
, $i);
72
return
$content;
73
}
74
75
public
function
run
($rid=0) {
76
$oTPL
=
dbx
()->get_system_obj(
'dbxTPL'
);
77
$rid=
dbx
()->get_modul_var(
"rid"
,0,
'int'
);
78
$modul=
"dbxContent_admin"
;
79
$tpl =
'view-content'
;
80
$reps =
"i=1&rid=$rid"
;
81
82
$this->
dbxView_init
(
'view-content'
);
83
$this->
set_property
(
'sync'
,
'rid'
);
84
$this->
set_property
(
'rid'
,$rid);
85
$content=$this->
dbxView_run
();
86
87
return
$content;
88
89
}
// run()
90
91
92
}
// class
93
94
?>
dbx\dbxContent_admin\dbxContent_view
Definition
dbxContent_view.class.php:6
dbx\dbxContent_admin\dbxContent_view\run
run($rid=0)
Definition
dbxContent_view.class.php:75
dbx\dbxContent_admin\dbxContent_view\dbxView_run
dbxView_run()
Definition
dbxContent_view.class.php:35
dbxObj\get_property
get_property($name, $default='', $section='', $modul='modul')
Liest eine Objekt- oder Session-Property.
Definition
dbxKernel.php:266
dbxObj\set_property
set_property($name, $value, $section='', $modul='modul')
Speichert eine Objekt- oder Session-Property.
Definition
dbxKernel.php:246
dbxView
Definition
dbxView.class.php:4
dbxView\dbxView_init
dbxView_init($id, $tpl='')
Definition
dbxView.class.php:16
dbxView\$oTPL
Public $oTPL
Definition
dbxView.class.php:7
dbx
DBX schema administration.
dbx
modules
dbxContent_admin
include
dbxContent_view.class.php
Generated by
1.17.0