4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.8 2003/12/14 01:53:15 jonen |
8 |
|
## implemented 'SELECT' mode for selecting existing object-refereneces as child-nodes |
9 |
|
## |
10 |
|
## Revision 1.7 2003/11/22 18:44:41 udo |
11 |
|
## update for expand data item |
12 |
|
## |
13 |
## Revision 1.6 2003/05/13 14:55:52 joko |
## Revision 1.6 2003/05/13 14:55:52 joko |
14 |
## parameters for MetaBox |
## parameters for MetaBox |
15 |
## |
## |
42 |
|
|
43 |
|
|
44 |
function set_gui_object() { |
function set_gui_object() { |
45 |
|
|
46 |
// 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] |
47 |
// 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!!! |
48 |
// TODO: abstract this out into some reusable, generic component sometimes (SimpleChooser?) |
// TODO: abstract this out into some reusable, generic component sometimes (SimpleChooser?) |
58 |
); |
); |
59 |
|
|
60 |
// debug |
// debug |
61 |
//print Dumper($this->_args); |
//print Dumper($this->_args) . "<br>"; |
62 |
|
|
63 |
|
|
64 |
if($this->_args['mode'] == 'view') { |
if($this->_args['mode'] == 'view') { |
65 |
$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']); |
$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']); |
66 |
} |
} |
67 |
elseif($this->_args['mode'] == 'edit') { |
elseif($this->_args['mode'] == 'edit') { |
84 |
elseif($this->_args['mode'] == 'create') { |
elseif($this->_args['mode'] == 'create') { |
85 |
$this->_gui_object = new CreateDataItem($this->_args['caption'], $this->_args['options'] ); |
$this->_gui_object = new CreateDataItem($this->_args['caption'], $this->_args['options'] ); |
86 |
} |
} |
87 |
|
// added this for full expanded objects |
88 |
|
elseif($this->_args['mode'] == 'expand') { |
89 |
|
$this->_gui_object = new ExpandDataItem($this->_args['caption'], $this->_args['options'] ); |
90 |
|
} |
91 |
|
elseif($this->_args['mode'] == 'expandedit') { |
92 |
|
$this->_gui_object = new ExpandEditDataItem($this->_args['caption'], $this->_args['options'] ); |
93 |
|
} |
94 |
|
elseif($this->_args['mode'] == 'select') { |
95 |
|
$this->_gui_object = new EditDataItem($this->_args['caption'], $this->_args['options'] ); |
96 |
|
} |
97 |
} |
} |
98 |
|
|
99 |
|
|