/[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.19 by joko, Fri Apr 18 16:21:37 2003 UTC revision 1.20 by jonen, Sat Apr 19 16:24:49 2003 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.20  2003/04/19 16:24:49  jonen
8    ##    + added two more GUI modules to default registry initiation,
9    ##       relating to new navigation module 'NavigationTree'
10    ##    + added prepartion of needed args for abstract navigation tree
11    ##       and concret UserManagment 'UMnav' tree
12    ##
13  ##    Revision 1.19  2003/04/18 16:21:37  joko  ##    Revision 1.19  2003/04/18 16:21:37  joko
14  ##    fixed commit comment - the last one caused a syntax error!!!  ##    fixed commit comment - the last one caused a syntax error!!!
15  ##  ##
# Line 230  class WebExplorer_AbstractExplorer { Line 236  class WebExplorer_AbstractExplorer {
236      // 2003-04-12 - Data.Tree      // 2003-04-12 - Data.Tree
237      $this->register_gui_module("content", "data", "tree", "WebExplorer::Module::DataTree" );      $this->register_gui_module("content", "data", "tree", "WebExplorer::Module::DataTree" );
238            
239            // 2003-04-18 - Nav.Tree
240        $this->register_gui_module("nav", "nav", "tree", "WebExplorer::Module::NavigationTree" );
241    
242        // 2003-04-18 - UserManagment Nav.Tree (we need only a different 'label' as Nav.Tree yet..)
243        $this->register_gui_module("UMnav", "nav", "tree", "WebExplorer::Module::NavigationTree" );
244    
245    }    }
246    
247    function register_source_module($label, $args) {    function register_source_module($label, $args) {
# Line 298  class WebExplorer_AbstractExplorer { Line 309  class WebExplorer_AbstractExplorer {
309      }      }
310      //print Dumper($ecom);      //print Dumper($ecom);
311            
312      // NOW[2003-18-04] done at via args(prepare args!) to pass at constructor      // NEW[2003-04-18] done via args(prepare args!) passed at constructor
313      //  (needed for non-real objects instanced at some child of AbstractGUIModule, eg. NavigationList)      //  (needed for non-real objects instanced at some child of AbstractGUIModule, eg. NavigationList)
314  /*  /*
315      // add hidden vars, needed for explorer control      // add hidden vars, needed for explorer control
# Line 413  class WebExplorer_AbstractExplorer { Line 424  class WebExplorer_AbstractExplorer {
424        if($val['ecom_abstract_type'] == "list") {        if($val['ecom_abstract_type'] == "list") {
425          if($val['ecom_data_locator_key'] == "rpc") {          if($val['ecom_data_locator_key'] == "rpc") {
426            //$data_locator_meta = array( transport => 'rpc', metatype => 'data', vartype => 'objects', nodename => $val['ecom_data_ident']);            //$data_locator_meta = array( transport => 'rpc', metatype => 'data', vartype => 'objects', nodename => $val['ecom_data_ident']);
427            $data_locator_meta = array( transport => 'rpc', metatype => 'data', abstract_type => 'list', nodename => $val['ecom_data_ident']);            $data_locator_meta = array( transport => 'rpc', metatype => 'data', abstract_type => 'list', nodename => $val['ecom_data_ident'], list_meta => $val['ecom_data_meta']);
428          } else {          } else {
429            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] !");
430          }          }
# Line 536  class WebExplorer_AbstractExplorer { Line 547  class WebExplorer_AbstractExplorer {
547            user_error("AbstractExplorer::_prepare_component_args - Cannot build schema query for data_locator_key $val[ecom_data_locator_key] !");            user_error("AbstractExplorer::_prepare_component_args - Cannot build schema query for data_locator_key $val[ecom_data_locator_key] !");
548          }          }
549                
550        // tree        // NEW [2003-04-18]: Abstract navigation tree
551        } elseif ($val['ecom_abstract_type'] == "tree") {        } elseif ($val['ecom_abstract_type'] == "tree") {
552          $args = array();          $args = array();
553          print "TREE!<br/>";          if($label == "nav") {
554              //$args[options][data_locator_meta] = array( transport => 'rpc', metatype => 'schema', abstract_type => 'tree', ident => $val['ecom_data_ident'], nodename => $val['ecom_data_meta']);
555              $args[options][data_locator_meta] = array( transport => 'rpc', metatype => 'schema', filter => 'nodes.root:concrete' );
556              $args['caption'] = $val['ecom_data_source_key'];
557            } elseif($label == "UMnav") {
558              //$args[options][data_locator_meta] = array( transport => 'rpc', metatype => 'schema', abstract_type => 'tree', ident => $val['ecom_data_ident'], nodename => $val['ecom_data_meta']);
559              $args[options][data_locator_meta] = array( transport => 'rpc', metatype => 'method', method => 'UserManagmentSchema' );
560              $args['caption'] = "Benutzerverwaltung";
561            }
562    
563        // NEW [2003-04-18]: transparent nav - argument pass-through mode        // NEW [2003-04-18]: transparent nav - argument pass-through mode
564        } elseif ($val['ecom_abstract_type'] == "transparent") {        } elseif ($val['ecom_abstract_type'] == "transparent") {
# Line 586  class WebExplorer_AbstractExplorer { Line 605  class WebExplorer_AbstractExplorer {
605            
606      }      }
607    
608      // add hidden items to args      // NEW[2003-04-18]: add hidden items to args
609      $args['hidden_elements'] = $this->_get_hidden_items($label);      $args['hidden_elements'] = $this->_get_hidden_items($label);
610    
611      return $args;      return $args;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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