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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Thu Mar 20 07:56:18 2003 UTC (21 years, 6 months ago) by jonen
Branch: MAIN
Changes since 1.1: +11 -24 lines
+ added docu

1 jonen 1.1 <?
2     /*
3     ## -----------------------------------------------------------------------------
4 jonen 1.2 ## $Id: AbstractGUIModule.php,v 1.1 2003/03/20 03:49:22 jonen Exp $
5 jonen 1.1 ## -----------------------------------------------------------------------------
6 jonen 1.2 ## $Log: AbstractGUIModule.php,v $
7     ## Revision 1.1 2003/03/20 03:49:22 jonen
8     ## + initial commit
9     ##
10 jonen 1.1 ## Revision 1.1 2003/03/01 22:57:23 cvsmax
11     ## + inital commit
12     ##
13     ##
14     ## -----------------------------------------------------------------------------
15     */
16    
17     /**
18     * AbstractGUIModule class provides an simple way to create new modules
19     * for the Explorer, eg navigation or data browsing elements.
20     *
21 jonen 1.2 * @author Sebastian Utz <seut@tunemedia.de>
22     * @package org.netfrag.app
23     * @name WebExplorer::Module::AbstractModule
24 jonen 1.1 */
25    
26    
27     class WebExplorer_Module_AbstractGUIModule {
28    
29    
30     /**
31     * most modules needs arguments e.g. data_locator_key, caption etc.
32     */
33     var $_args = array();
34    
35     /**
36 jonen 1.2 * variable thats holds the reference to phphtmllib GUI object
37 jonen 1.1 */
38     var $_gui_object;
39    
40     /**
41     * the contructor
42     *
43 jonen 1.2 * @params struct - the arguments
44 jonen 1.1 */
45     function WebExplorer_Module_AbstractGUIModule($args = array()) {
46     $this->_args = $args;
47    
48     $this->set_gui_object();
49     //print Dumper($this->_gui_object);
50     }
51 jonen 1.2
52 jonen 1.1
53     function set_gui_object() {
54     user_error("AbstractGUIModule::set_gui_object() - Child must override");
55     }
56    
57    
58     function add_hidden_items($items) {
59     foreach($items as $label => $value) {
60     $this->add_hidden_item($label, $value);
61     }
62     }
63    
64     function add_hidden_item($label, $value) {
65     //print "Label: $label => $value<br>";
66     $this->_gui_object->add_hidden_item($label, $value);
67     }
68    
69     function &get() {
70     return $this->_gui_object;
71     }
72    
73     }
74    
75     ?>

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