/[cvs]/nfo/php/libs/org.netfrag.glib/DataSource/Adapter/phpHtmlLib/DataSource.php
ViewVC logotype

Annotation of /nfo/php/libs/org.netfrag.glib/DataSource/Adapter/phpHtmlLib/DataSource.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Thu May 6 17:08:22 2004 UTC (20 years, 4 months ago) by jonen
Branch: MAIN
Changes since 1.1: +8 -6 lines
 bugfix related to new phphtmllib-v2.4.1 of Apr 01, 2004

1 jonen 1.1 <?php
2     /**
3     * This file contains the DataSource::Adapter::phpHtmlLib::DataListSource
4     * adapter class that inherits from the DataListSource.
5     *
6     * @author Andreas Motl <andreas.motl@ilo.de>
7     * @package org.netfrag.glib
8     * @name DataSource::Adapter::phpHtmlLib::DataListSource
9     *
10     */
11    
12     /**
13     * <b>Cvs-Log:</b>
14     *
15     * <pre>
16 jonen 1.2 * $Id: DataSource.php,v 1.1 2003/03/27 01:21:30 jonen Exp $
17     *
18     * $Log: DataSource.php,v $
19     * Revision 1.1 2003/03/27 01:21:30 jonen
20     * + renamed
21 jonen 1.1 *
22     * Revision 1.3 2003/03/11 01:22:26 joko
23     * + fixed metadata for phpDocumentor
24     *
25     * Revision 1.2 2003/03/05 18:54:45 joko
26     * updated docu - phpDocumentor is very strict about its 'blocks'...
27     *
28     * Revision 1.1 2003/03/05 12:06:23 joko
29     * + initial commit
30     * </pre>
31     *
32     */
33    
34    
35    
36     /**
37     * This file contains the DataSource::Adapter::phpHtmlLib::DataListSource
38     * adapter class that inherits from the DataListSource.
39     *
40     * @author Andreas Motl <andreas.motl@ilo.de>
41     * @copyright (c) 2003 - All Rights reserved.
42     * @license GNU LGPL (GNU Lesser General Public License)
43     *
44     * @link http://www.netfrag.org/~joko/
45     * @link http://www.gnu.org/licenses/lgpl.txt
46     *
47     * @package org.netfrag.glib
48     * @subpackage DataSource
49     * @name DataSource::Adapter::phpHtmlLib::DataListSource
50     *
51     */
52     class DataSource_Adapter_phpHtmlLib_DataSource extends MemoryDataSource {
53    
54     /**
55     * The constructor.
56     *
57     * @param DesignPattern::Proxy - a Proxy instance
58     *
59     */
60     function DataSource_Adapter_phpHtmlLib_DataSource(&$proxy) {
61    
62     if (!isset($proxy)) {
63     user_error("Please pass Proxy instance to the Adapter!");
64     return;
65     }
66    
67     $this->_proxy = &$proxy;
68    
69     // tracing
70     //$this->trace_payload('DataSource_Adapter_phpHtmlLib_DataListSource', $proxy);
71    
72     // transfer data to "memory"
73     //$this->_memory = &$payload;
74    
75     //return 1;
76    
77     }
78    
79     function fetch($force = 0) {
80     $this->_result = $this->_proxy->get_result();
81     if (!sizeof($this->_result) || $force) {
82     $this->_result = $this->_proxy->query_data();
83     }
84 jonen 1.2 return $this->propagate();
85 jonen 1.1 }
86    
87     function propagate() {
88 jonen 1.2 return $this->handle_result();
89 jonen 1.1 }
90    
91    
92    
93     function get_header() {
94     $this->fetch();
95     $this->read_labels_from_result();
96     return $this->get_labels();
97     }
98    
99     function do_prequery() {
100     }
101    
102     function do_query() {
103 jonen 1.2 return $this->fetch();
104 jonen 1.1 }
105    
106     }
107    
108     ?>

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