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

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

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

revision 1.2 by jonen, Thu Mar 20 07:56:18 2003 UTC revision 1.4 by joko, Sat Apr 5 21:17:51 2003 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.4  2003/04/05 21:17:51  joko
8    ##    extends Class::Abstract (for being able to call '_abstract_method' on it)
9    ##
10    ##    Revision 1.3  2003/04/04 00:56:08  jonen
11    ##    + add 'mungle_adapter' function
12    ##
13  ##    Revision 1.2  2003/03/20 07:56:18  jonen  ##    Revision 1.2  2003/03/20 07:56:18  jonen
14  ##    + added docu  ##    + added docu
15  ##  ##
# Line 17  Line 23 
23  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
24  */  */
25    
26    
27    /**
28     * required only for $this->_abstract_method({methodname})
29     * can later be used or not without any problems or further
30     * dependencies since this is an abstract base class at the
31     * very top of the inheritance hierarchy.
32     *
33     */
34    loadModule('Class::Abstract');
35    
36  /**  /**
37   * AbstractGUIModule class provides an simple way to create new modules   * AbstractGUIModule class provides an simple way to create new modules
38   * for the Explorer, eg navigation or data browsing elements.   * for the Explorer, eg navigation or data browsing elements.
# Line 25  Line 41 
41   * @package org.netfrag.app   * @package org.netfrag.app
42   * @name WebExplorer::Module::AbstractModule   * @name WebExplorer::Module::AbstractModule
43   */   */
44    class WebExplorer_Module_AbstractGUIModule extends Class_Abstract {
   
 class WebExplorer_Module_AbstractGUIModule {  
45    
46    
47   /**   /**
# Line 66  class WebExplorer_Module_AbstractGUIModu Line 80  class WebExplorer_Module_AbstractGUIModu
80        
81    function add_hidden_item($label, $value) {    function add_hidden_item($label, $value) {
82      //print "Label: $label => $value<br>";      //print "Label: $label => $value<br>";
83      $this->_gui_object->add_hidden_item($label, $value);      $this->_gui_object->add_hidden_element($label, $value);
84    }    }
85    
86    function &get() {    function &get() {
87       return $this->_gui_object;      if($this->_args['adapter']) {
88          return $this->mungle_adapter($this->_args['adapter']);
89        } else {
90          return $this->_gui_object;
91        }
92      }
93      
94      function mungle_adapter($label) {
95        return php::mkInstance($label, array(&$this->_gui_object));
96    }    }
97        
98  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

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