dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Loading...
Searching...
No Matches
dbxView.class.php
Go to the documentation of this file.
1<?php
2
3
4class 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?>
Gemeinsame Basisklasse fuer dbXapp-System-, Modul- und Include-Objekte.
Definition dbxKernel.php:63
get_property($name, $default='', $section='', $modul='modul')
Liest eine Objekt- oder Session-Property.
set_property($name, $value, $section='', $modul='modul')
Speichert eine Objekt- oder Session-Property.
dbxView_init($id, $tpl='')
Public $oTPL
Public $oValidator
DBX schema administration.