/[cvs]/nfo/php/libs/org.netfrag.app/WebExplorer/AbstractExplorer.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/WebExplorer/AbstractExplorer.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by udo, Sat Nov 22 18:47:49 2003 UTC revision 1.27 by jonen, Thu Mar 11 21:01:35 2004 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.27  2004/03/11 21:01:35  jonen
8    ##    minor change
9    ##
10    ##    Revision 1.26  2003/12/14 01:50:30  jonen
11    ##    implemented 'SELECT' mode for selecting existing object-refereneces as child-nodes
12    ##
13  ##    Revision 1.25  2003/11/22 18:47:49  udo  ##    Revision 1.25  2003/11/22 18:47:49  udo
14  ##    update for expand data item  ##    update for expand data item
15  ##  ##
# Line 472  class WebExplorer_AbstractExplorer { Line 478  class WebExplorer_AbstractExplorer {
478          } else {          } else {
479            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] !");
480          }          }
481            
482            if($val['ecom_mode'] == 'select') {        
483              $actionbar = array(
484                     'buttons' => array(
485                                   array(
486                                     'name' => "ecdfsel",
487                                     'value' => "Select"
488                                   ),
489                                 ),
490                         );
491            } else {        
492              $actionbar = array(
493                     'name' => "ecdfa",
494                     'list' => array(
495                                                                                                   "View" => 'view',
496                                                                                                   "Edit" => 'edit',
497                                 "Delete" => 'delete',
498                                 "Expand" => 'expand',
499                                 "Expandedit" => 'expandedit',                                                
500                               ),
501                     'selected' => 'view',
502                     'buttons' => array(
503                                   array(
504                                     'name' => "ecdfcr",
505                                     'value' => "Add new"
506                                   ),
507                                 ),
508                         );
509            }
510            
511          $args = array(          $args = array(
512                        'caption' => $val['ecom_data_ident'],                        'caption' => $val['ecom_data_ident'],
513                        'orderby' => "Guid",                        'orderby' => "Guid",
# Line 482  class WebExplorer_AbstractExplorer { Line 518  class WebExplorer_AbstractExplorer {
518                                                'seperator' => "_",                                                'seperator' => "_",
519                                                //'form' => 1,                                                //'form' => 1,
520                                                ),                                                ),
521                                            'actionbar' => array(                                            'actionbar' => $actionbar,
                                               'name' => "ecdfa",  
                                               'list' => array(  
                                                                                                "View" => 'view',  
                                                                                                "Edit" => 'edit',  
   
                                                   "Delete" => 'delete',  
                                                   "Expand" => 'expand',  
                                                   "Expandedit" => 'expandedit',  
                                                     
                                                   ),  
                                               'selected' => 'view',  
                                               'create' => array(  
                                                    'name' => "ecdfcr",  
                                                    'value' => "Add new"  
                                                    ),  
                                               ),  
522                                            'parent' => array(                                            'parent' => array(
523                                                'class' => $val['ecom_data_ident'],                                                'class' => $val['ecom_data_ident'],
524                                                ),                                                ),
525                                            ),                                            ),
526                        );                        );
527               if($val['ecom_data_meta_x']) {
528                 //unset($args['options']['data_locator_meta']['nodename']);
529                 $args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta'];
530                 $args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x'];
531               }
532                
533        // switch abstract type        // switch abstract type
534        } elseif ($val['ecom_abstract_type'] == "item") {        } elseif ($val['ecom_abstract_type'] == "item") {
# Line 555  class WebExplorer_AbstractExplorer { Line 580  class WebExplorer_AbstractExplorer {
580           //if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'GenericNegotiation'; }           //if ($val['ecom_mode'] == "delete") { $args['adapter'] = 'GenericNegotiation'; }
581           if ($val['ecom_mode'] == "delete") {           if ($val['ecom_mode'] == "delete") {
582             $args['adapter'] = 'NonValidatingFormProcessor';             $args['adapter'] = 'NonValidatingFormProcessor';
583               $args['options']['data_locator_meta']['action'] = 'delete';
584           }           }
585    
586           if ($val['ecom_mode'] == "create") {           if ($val['ecom_mode'] == "create") {
587             $args['adapter'] = 'FormProcessor';             $args['adapter'] = 'FormProcessor';
588             $args['options']['caption'] = $val['ecom_data_ident'];             $args['options']['caption'] = $val['ecom_data_ident'];
589             $args['options']['data_locator_meta']['action'] = 'create';             $args['options']['data_locator_meta']['action'] = 'create';
590             print "debug 'create': " . Dumper($val);             //print "debug 'create': " . Dumper($val);
          }  
   
591             if($val['ecom_data_meta_x']) {             if($val['ecom_data_meta_x']) {
592               unset($args['options']['data_locator_meta']['nodename']);               unset($args['options']['data_locator_meta']['nodename']);
593               $args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta'];               $args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta'];
594               $args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x'];               $args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x'];
595             }             }
596             }
597             if ($val['ecom_mode'] == "select") {
598               $args['adapter'] = 'FormProcessor';
599               $args['caption'] = $val['ecom_data_meta_xe'] . " {". $val['ecom_data_meta_x'] . ":}";
600               $args['options']['data_locator_meta']['action'] = 'select';
601               //print "debug 'select': " . Dumper($val);
602               if($val['ecom_data_meta_x']) {
603                 $args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta_xe'];
604                 $args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x'];
605               }
606             }
607    
608             //print "debug 'args' : " . Dumper($args);
609                    
610        // switch abstract type        // switch abstract type
611        } elseif ($val['ecom_abstract_type'] == "tree") {        } elseif ($val['ecom_abstract_type'] == "tree") {

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.27

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed