dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
dbxView.class.php
Go to the documentation of this file.
1
<?php
2
3
4
class
dbxView
extends
\dbxObj
{
5
6
7
Public
$oTPL
;
8
Public
$oValidator
;
9
10
public
function
__construct
() {
11
$this->oValidator=
dbx
()->get_system_obj(
'dbxValidator'
);
12
$this->oTPL =
dbx
()->get_system_obj(
'dbxTPL'
);
13
}
14
15
16
public
function
dbxView_init
($id,$tpl=
''
) {
17
if
(!$tpl) $tpl=$id;
18
$this->
set_property
(
'prozess_id'
,$id);
19
$this->
set_property
(
'tpl'
,$tpl);
20
}
21
22
public
function
dbxView_run
() {
23
$i =
dbx
()->next_id();
24
$target =
'dbx_target_'
.$i;
25
26
$id = $this->
get_property
(
'prozess_id'
);
27
$tpl = $this->
get_property
(
'tpl'
);
28
$sync = $this->
get_property
(
'sync'
,
'rid'
);
29
$modul = $this->
get_property
(
'modul'
,
'modul'
);
30
$mode = $this->
get_property
(
'mode'
,
'sync'
);
31
$target = $this->
get_property
(
'target'
,$target);
32
$val =
dbx
()->get_request_var($sync,0,
'int'
);
33
if
($modul ==
'modul'
|| !$modul) $modul=
dbx
()->get_system_var(
'dbx_modul'
,
'dbx'
);
34
35
$dbx_run1=
dbx
()->get_system_var(
'dbx_run1'
,
'run'
);
36
37
$action =
'?dbx_modul='
.$modul.
'&dbx_run1='
.$dbx_run1.
'&'
.$sync.
'='
.$val;
38
$action = $this->
get_property
(
'action'
,$action);
39
40
$vievsys[
'view'
] =$id;
41
$vievsys[
'value'
] =$val;
42
$vievsys[
'mode'
] =$mode;
43
$vievsys[
'modul'
] =$modul;
44
$vievsys[
'target'
]=$target;
45
$vievsys[
'action'
]=$action;
46
47
dbx
()->set_session_var($id,$vievsys,
'view-sys'
,$modul);
48
49
50
$reps[
'dbx_view'
] = $id;
51
$reps[
'dbx_modul'
] = $modul;
52
$reps[
'dbx_tpl'
] = $tpl;
53
$reps[
'rid'
] = $val;
54
$reps[
'i'
] = $i;
55
56
$content=$this->oTPL->get_tpl($modul .
'|'
. $tpl, $reps,
'htm'
, $i);
57
return
$content;
58
}
59
60
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
61
62
}
// class
63
64
?>
dbxObj
Gemeinsame Basisklasse fuer dbXapp-System-, Modul- und Include-Objekte.
Definition
dbxKernel.php:63
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\__construct
__construct()
Definition
dbxView.class.php:10
dbxView\dbxView_init
dbxView_init($id, $tpl='')
Definition
dbxView.class.php:16
dbxView\$oTPL
Public $oTPL
Definition
dbxView.class.php:7
dbxView\dbxView_run
dbxView_run()
Definition
dbxView.class.php:22
dbxView\$oValidator
Public $oValidator
Definition
dbxView.class.php:8
dbx
DBX schema administration.
dbx
include
dbxView.class.php
Generated by
1.17.0