4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.21 2003/05/10 18:23:21 jonen |
8 |
|
## + added stuff relating to 'create/add new' links/buttons |
9 |
|
## |
10 |
## Revision 1.20 2003/04/19 16:24:49 jonen |
## Revision 1.20 2003/04/19 16:24:49 jonen |
11 |
## + added two more GUI modules to default registry initiation, |
## + added two more GUI modules to default registry initiation, |
12 |
## relating to new navigation module 'NavigationTree' |
## relating to new navigation module 'NavigationTree' |
343 |
'ecl' => $label, |
'ecl' => $label, |
344 |
'ecat' => "item", |
'ecat' => "item", |
345 |
'ecmod' => "view", |
'ecmod' => "view", |
346 |
|
'ecdm' => $ecom_state['ecom_data_ident'], |
347 |
); |
); |
348 |
} |
} |
349 |
elseif($ecom_state['ecom_abstract_type'] == "item") { |
elseif($ecom_state['ecom_abstract_type'] == "item") { |
448 |
"View" => 'view', |
"View" => 'view', |
449 |
"Edit" => 'edit', |
"Edit" => 'edit', |
450 |
"Delete" => 'delete', |
"Delete" => 'delete', |
|
"Add new" => 'add', |
|
451 |
), |
), |
452 |
|
'selected' => 'view', |
453 |
|
'create' => array( |
454 |
|
'name' => "ecdfcr", |
455 |
|
'value' => "Add new" |
456 |
|
), |
457 |
|
), |
458 |
|
'parent' => array( |
459 |
|
'class' => $val['ecom_data_ident'], |
460 |
), |
), |
461 |
), |
), |
462 |
); |
); |
502 |
'decode' => 1, |
'decode' => 1, |
503 |
'decode_args' => array( |
'decode_args' => array( |
504 |
'seperator' => "_", |
'seperator' => "_", |
505 |
|
), |
506 |
|
'parent' => array( |
507 |
|
'guid' => $val['ecom_data_ident'], |
508 |
|
'class' => $val['ecom_data_meta'], |
509 |
|
), |
510 |
), |
), |
|
), |
|
511 |
); |
); |
512 |
if ($val['ecom_mode'] == "edit") { $args['adapter'] = 'FormProcessor'; } |
if ($val['ecom_mode'] == "edit") { $args['adapter'] = 'FormProcessor'; } |
513 |
|
|
514 |
// FIXME: (see WebExplorer::Module::AbstractGUIModule) |
// FIXME: (see WebExplorer::Module::AbstractGUIModule) |
515 |
//if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'GenericNegotiation'; } |
//if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'GenericNegotiation'; } |
516 |
if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'NonValidatingFormProcessor'; } |
if ($val['ecom_mode'] == "delete") { |
517 |
|
$args['adapter'] = 'NonValidatingFormProcessor'; |
518 |
|
} |
519 |
|
|
520 |
|
if ($val['ecom_mode'] == "create") { |
521 |
|
$args['adapter'] = 'FormProcessor'; |
522 |
|
$args['options']['caption'] = $val['ecom_data_ident']; |
523 |
|
$args['options']['data_locator_meta']['action'] = 'create'; |
524 |
|
print "debug 'create': " . Dumper($val); |
525 |
|
if($val['ecom_data_meta_x']) { |
526 |
|
unset($args['options']['data_locator_meta']['nodename']); |
527 |
|
$args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta']; |
528 |
|
$args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x']; |
529 |
|
} |
530 |
|
} |
531 |
|
|
532 |
// switch abstract type |
// switch abstract type |
533 |
} elseif ($val['ecom_abstract_type'] == "tree") { |
} elseif ($val['ecom_abstract_type'] == "tree") { |