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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Tue Mar 11 01:22:26 2003 UTC (21 years, 6 months ago) by joko
Branch: MAIN
Changes since 1.2: +8 -2 lines
+ fixed metadata for phpDocumentor

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

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