4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.16 2003/04/10 06:00:58 joko |
8 |
|
## ALPHA: Item.Delete |
9 |
|
## |
10 |
## Revision 1.15 2003/04/09 02:08:20 joko |
## Revision 1.15 2003/04/09 02:08:20 joko |
11 |
## CHANGE: renamed key 'classname' through 'nodename' |
## CHANGE: renamed key 'classname' through 'nodename' |
12 |
## |
## |
174 |
$this->register_gui_module("content", "data", "list", "WebExplorer::Module::DataList" ); |
$this->register_gui_module("content", "data", "list", "WebExplorer::Module::DataList" ); |
175 |
$this->register_gui_module("content", "data", "item", "WebExplorer::Module::DataItem" ); |
$this->register_gui_module("content", "data", "item", "WebExplorer::Module::DataItem" ); |
176 |
// 2003-04-05 - Chooser |
// 2003-04-05 - Chooser |
177 |
$this->register_gui_module("chooser", "nav", "list", "WebExplorer::Module::Chooser"); |
$this->register_gui_module("chooser", "nav", "list", "WebExplorer::Module::Chooser"); |
178 |
// 2003-04-07 - RemoteAction |
// 2003-04-07 - RemoteAction |
179 |
$this->register_gui_module("phase_startup", "call", "auto", "WebExplorer::Module::RemoteAction"); |
$this->register_gui_module("phase_startup", "call", "auto", "WebExplorer::Module::RemoteAction"); |
180 |
|
// 2003-04-09 - Item.Delete |
181 |
|
$this->register_gui_module("phase_startup", "data", "item", "WebExplorer::Module::DataItem"); |
182 |
|
//$this->register_gui_module("phase_startup", "data", "auto", "WebExplorer::Module::RemoteAction"); |
183 |
|
//$this->register_gui_module("phase_startup", "data", "auto", "WebExplorer::Module::DataItem"); |
184 |
} |
} |
185 |
|
|
186 |
function register_source_module($label, $args) { |
function register_source_module($label, $args) { |
210 |
|
|
211 |
|
|
212 |
function _load_ecom($label) { |
function _load_ecom($label) { |
213 |
|
|
214 |
// fetch values from state |
// fetch values from state |
215 |
$val = $this->_e_state['ecoms'][$label]; |
$val = $this->_e_state['ecoms'][$label]; |
216 |
debug::info("_load_ecom($label): " . Dumper($val) . "<br/>"); |
debug::info("_load_ecom($label): " . Dumper($val) . "<br/>"); |
217 |
|
|
218 |
|
// NEW [2003-04-10]: ecom-RESET-condition |
219 |
|
if (!is_array($val) && $val == 'RESET') { |
220 |
|
debug::info("Resetting component: $label"); |
221 |
|
return; |
222 |
|
} |
223 |
|
|
224 |
// find right ecom gui module |
// find right ecom gui module |
225 |
$ecom_type = $val['ecom_type']; |
$ecom_type = $val['ecom_type']; |
226 |
$abstract_type = $val['ecom_abstract_type']; |
$abstract_type = $val['ecom_abstract_type']; |
345 |
} else { |
} else { |
346 |
user_error("AbstractExplorer::_prepare_component_args - Cannot build query for data_locator_key $val[ecom_data_locator_key] !"); |
user_error("AbstractExplorer::_prepare_component_args - Cannot build query for data_locator_key $val[ecom_data_locator_key] !"); |
347 |
} |
} |
348 |
|
|
349 |
|
// defaults |
350 |
if(!$val['ecom_mode']) { $val['ecom_mode'] = "view"; } |
if(!$val['ecom_mode']) { $val['ecom_mode'] = "view"; } |
351 |
|
//$val['ecom_mode'] = "view"; |
352 |
|
|
353 |
|
// debugging |
354 |
print "Mode: $val[ecom_mode]<br>"; |
print "Mode: $val[ecom_mode]<br>"; |
355 |
|
|
356 |
|
// prepare some arguments... |
357 |
$args = array( |
$args = array( |
358 |
'caption' => $val['ecom_data_meta'], |
'caption' => $val['ecom_data_meta'], |
359 |
'mode' => $val['ecom_mode'], |
'mode' => $val['ecom_mode'], |
365 |
), |
), |
366 |
), |
), |
367 |
); |
); |
368 |
if($val['ecom_mode'] == "edit") { $args['adapter'] = 'FormProcessor'; } |
if ($val['ecom_mode'] == "edit") { $args['adapter'] = 'FormProcessor'; } |
369 |
|
|
370 |
|
// FIXME: (see WebExplorer::Module::AbstractGUIModule) |
371 |
|
//if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'GenericNegotiation'; } |
372 |
|
if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'NonValidatingFormProcessor'; } |
373 |
|
|
374 |
} |
} |
375 |
|
|
376 |
// switch component type |
// switch component type |