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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Apr 8 18:00:16 2003 UTC (21 years, 5 months ago) by joko
Branch: MAIN
CVS Tags: HEAD
initial commit

1 joko 1.1 <?
2     /*
3     ## -----------------------------------------------------------------------------
4     ## $Id: Chooser.php,v 1.1 2003/04/05 20:33:39 joko Exp $
5     ## -----------------------------------------------------------------------------
6     ## $Log: Chooser.php,v $
7     ## -----------------------------------------------------------------------------
8     */
9    
10     loadModule('WebExplorer::Module::AbstractGUIModule');
11    
12     class WebExplorer_Module_RemoteAction extends WebExplorer_Module_AbstractGUIModule {
13    
14     function set_gui_object() {
15    
16     //$this->_gui_object = new DataItem($this->_args['caption'], $this->_args['options']);
17     //$dataitem = new DataItem('hello', array());
18     //print Dumper($dataitem);
19    
20     $this->_gui_object = $this->doAction();
21    
22     /*
23     foreach ($this->result as $value) {
24     $alt_caption = "Zur Datenquelle '$value' wechseln.";
25     //$url = $_SERVER['PHP_SELF'] . "?" . $this->_control['page_ident_label'] . "=d_list&l_label=" . $value;
26     $url = $_SERVER['PHP_SELF'] . "?ap=explorer&ecl=content&ecdl=rpc&ecds=$value";
27     $this->nav->add($url, $value, $alt_caption);
28     }
29     */
30    
31     }
32    
33    
34     function doAction() {
35    
36     //print "args: " . Dumper($this->_args) . "<br/>";
37    
38     // use DataSource::Generic's interface to communicate with remote side
39     // now we don't fetch or store any data or metadata, we (just) execute
40     // a remote call returning an arbitrary answer (most probably a bool!?)
41     $initial_locator = php::mkComponent( 'DataSource::Locator', array( adapter_type => 'phpHtmlLib' ) );
42     //print Dumper($initial_locator);
43     $proxy = php::mkComponent('DataSource::Generic', $initial_locator, $this->_args['options']['data_locator_meta']);
44     $this->source = $proxy->get_adapter();
45    
46     if ($this->source) {
47     $this->source->do_query();
48     $this->result = $this->source->_result;
49     }
50    
51     //print "result: " . Dumper($this->result);
52    
53     //return "Response: " . ;
54    
55     }
56    
57    
58     }
59    
60    
61     ?>

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