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

Diff of /nfo/php/libs/org.netfrag.app/WebExplorer/Module/DataItem.php

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

revision 1.5 by jonen, Sat May 10 18:27:17 2003 UTC revision 1.7 by udo, Sat Nov 22 18:44:41 2003 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.7  2003/11/22 18:44:41  udo
8    ##    update for expand data item
9    ##
10    ##    Revision 1.6  2003/05/13 14:55:52  joko
11    ##    parameters for MetaBox
12    ##
13  ##    Revision 1.5  2003/05/10 18:27:17  jonen  ##    Revision 1.5  2003/05/10 18:27:17  jonen
14  ##    + supports now mode 'create' via widget 'CreateDataItem'  ##    + supports now mode 'create' via widget 'CreateDataItem'
15  ##  ##
# Line 33  class WebExplorer_Module_DataItem extend Line 39  class WebExplorer_Module_DataItem extend
39    
40    
41    function set_gui_object() {    function set_gui_object() {
42      //print Dumper($this->_args);  
43      if($this->_args['mode'] == 'view') {      // NEW [2003-04-22]: inject metadata about chooser (item|list|tree) into _args[options]
44        // Please visit WebExplorer::Module::DataTree - there is a similar chooser at the top!!!
45        // TODO: abstract this out into some reusable, generic component sometimes (SimpleChooser?)
46        $this->_args[options][links] = array(
47          'list' => array(
48            array( name => 'item', url => url::view_as('item') ),
49            array( name => 'tree', url => url::view_as('tree', array( ecdid => $_GET[ecdm] )) ),
50            //array( name => 'reset filter', url => url::filter('tree') ),
51          ),
52          'meta' => array(
53            'selected' => $this->_args[options][data_locator_meta][abstract_type]
54          )
55        );
56        
57        // debug
58        //print Dumper($this->_args) . "<br>";
59    
60        
61        if($this->_args['mode'] == 'view') {
62        $this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']);        $this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']);
63      }      }
64      elseif($this->_args['mode'] == 'edit') {      elseif($this->_args['mode'] == 'edit') {
# Line 48  class WebExplorer_Module_DataItem extend Line 72  class WebExplorer_Module_DataItem extend
72       // Try to implement this aspect of the required infrastructure independent of       // Try to implement this aspect of the required infrastructure independent of
73       // an 'EditDataItem'. Maybe it should become a 'GenericNegotiation'-ecom-component?!       // an 'EditDataItem'. Maybe it should become a 'GenericNegotiation'-ecom-component?!
74       // Aim: Abstract way of handling 'Confirm', 'Cancel' actions on arbitrary "question"???       // Aim: Abstract way of handling 'Confirm', 'Cancel' actions on arbitrary "question"???
       
75       $negotiation_options = array(       $negotiation_options = array(
76       );       );
77            
# Line 58  class WebExplorer_Module_DataItem extend Line 81  class WebExplorer_Module_DataItem extend
81      elseif($this->_args['mode'] == 'create') {      elseif($this->_args['mode'] == 'create') {
82       $this->_gui_object = new CreateDataItem($this->_args['caption'], $this->_args['options'] );       $this->_gui_object = new CreateDataItem($this->_args['caption'], $this->_args['options'] );
83      }      }
84        // added this for full expanded objects
85        elseif($this->_args['mode'] == 'expand') {
86         $this->_gui_object = new ExpandDataItem($this->_args['caption'], $this->_args['options'] );
87        }
88        elseif($this->_args['mode'] == 'expandedit') {
89         $this->_gui_object = new ExpandEditDataItem($this->_args['caption'], $this->_args['options'] );
90        }
91    }    }
92    
93    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

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