4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.7 2003/11/22 18:44:41 udo |
8 |
|
## update for expand data item |
9 |
|
## |
10 |
## Revision 1.6 2003/05/13 14:55:52 joko |
## Revision 1.6 2003/05/13 14:55:52 joko |
11 |
## parameters for MetaBox |
## parameters for MetaBox |
12 |
## |
## |
39 |
|
|
40 |
|
|
41 |
function set_gui_object() { |
function set_gui_object() { |
42 |
|
|
43 |
// NEW [2003-04-22]: inject metadata about chooser (item|list|tree) into _args[options] |
// NEW [2003-04-22]: inject metadata about chooser (item|list|tree) into _args[options] |
44 |
// Please visit WebExplorer::Module::DataTree - there is a similar chooser at the top!!! |
// Please visit WebExplorer::Module::DataTree - there is a similar chooser at the top!!! |
45 |
// TODO: abstract this out into some reusable, generic component sometimes (SimpleChooser?) |
// TODO: abstract this out into some reusable, generic component sometimes (SimpleChooser?) |
55 |
); |
); |
56 |
|
|
57 |
// debug |
// debug |
58 |
//print Dumper($this->_args); |
//print Dumper($this->_args) . "<br>"; |
59 |
|
|
60 |
|
|
61 |
if($this->_args['mode'] == 'view') { |
if($this->_args['mode'] == 'view') { |
62 |
$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']); |
$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']); |
63 |
} |
} |
64 |
elseif($this->_args['mode'] == 'edit') { |
elseif($this->_args['mode'] == 'edit') { |
81 |
elseif($this->_args['mode'] == 'create') { |
elseif($this->_args['mode'] == 'create') { |
82 |
$this->_gui_object = new CreateDataItem($this->_args['caption'], $this->_args['options'] ); |
$this->_gui_object = new CreateDataItem($this->_args['caption'], $this->_args['options'] ); |
83 |
} |
} |
84 |
|
// added this for full expanded objects |
85 |
|
elseif($this->_args['mode'] == 'expand') { |
86 |
|
$this->_gui_object = new ExpandDataItem($this->_args['caption'], $this->_args['options'] ); |
87 |
|
} |
88 |
|
elseif($this->_args['mode'] == 'expandedit') { |
89 |
|
$this->_gui_object = new ExpandEditDataItem($this->_args['caption'], $this->_args['options'] ); |
90 |
|
} |
91 |
} |
} |
92 |
|
|
93 |
|
|