4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.6 2003/05/13 14:55:52 joko |
8 |
|
## parameters for MetaBox |
9 |
|
## |
10 |
## Revision 1.5 2003/05/10 18:27:17 jonen |
## Revision 1.5 2003/05/10 18:27:17 jonen |
11 |
## + supports now mode 'create' via widget 'CreateDataItem' |
## + supports now mode 'create' via widget 'CreateDataItem' |
12 |
## |
## |
36 |
|
|
37 |
|
|
38 |
function set_gui_object() { |
function set_gui_object() { |
39 |
|
|
40 |
|
// NEW [2003-04-22]: inject metadata about chooser (item|list|tree) into _args[options] |
41 |
|
// Please visit WebExplorer::Module::DataTree - there is a similar chooser at the top!!! |
42 |
|
// TODO: abstract this out into some reusable, generic component sometimes (SimpleChooser?) |
43 |
|
$this->_args[options][links] = array( |
44 |
|
'list' => array( |
45 |
|
array( name => 'item', url => url::view_as('item') ), |
46 |
|
array( name => 'tree', url => url::view_as('tree', array( ecdid => $_GET[ecdm] )) ), |
47 |
|
//array( name => 'reset filter', url => url::filter('tree') ), |
48 |
|
), |
49 |
|
'meta' => array( |
50 |
|
'selected' => $this->_args[options][data_locator_meta][abstract_type] |
51 |
|
) |
52 |
|
); |
53 |
|
|
54 |
|
// debug |
55 |
//print Dumper($this->_args); |
//print Dumper($this->_args); |
56 |
|
|
57 |
if($this->_args['mode'] == 'view') { |
if($this->_args['mode'] == 'view') { |
58 |
$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']); |
$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']); |
59 |
} |
} |
68 |
// Try to implement this aspect of the required infrastructure independent of |
// Try to implement this aspect of the required infrastructure independent of |
69 |
// an 'EditDataItem'. Maybe it should become a 'GenericNegotiation'-ecom-component?! |
// an 'EditDataItem'. Maybe it should become a 'GenericNegotiation'-ecom-component?! |
70 |
// Aim: Abstract way of handling 'Confirm', 'Cancel' actions on arbitrary "question"??? |
// Aim: Abstract way of handling 'Confirm', 'Cancel' actions on arbitrary "question"??? |
|
|
|
71 |
$negotiation_options = array( |
$negotiation_options = array( |
72 |
); |
); |
73 |
|
|