19 |
* $Id$ |
* $Id$ |
20 |
* |
* |
21 |
* $Log$ |
* $Log$ |
22 |
|
* Revision 1.2 2003/03/01 04:50:27 joko |
23 |
|
* encapsulated all output into tracing mode |
24 |
|
* disabled tracing |
25 |
|
* |
26 |
* Revision 1.1 2003/03/01 03:10:40 joko |
* Revision 1.1 2003/03/01 03:10:40 joko |
27 |
* + initial commit |
* + initial commit |
28 |
* |
* |
100 |
* |
* |
101 |
*/ |
*/ |
102 |
|
|
103 |
|
|
104 |
class ProxyDataSource extends MemoryDataSource { |
class ProxyDataSource extends MemoryDataSource { |
105 |
|
|
106 |
/** |
/** |
145 |
* @param Query array - layout: array( type => '', metadata => '', dsn => '' ) |
* @param Query array - layout: array( type => '', metadata => '', dsn => '' ) |
146 |
*/ |
*/ |
147 |
function ProxyDataSource( &$locator, $query ) { |
function ProxyDataSource( &$locator, $query ) { |
148 |
|
|
149 |
|
$this->trace = 0; |
150 |
|
|
151 |
$this->set_locator( $locator ); |
$this->set_locator( $locator ); |
152 |
$this->set_query( $query ); |
$this->set_query( $query ); |
153 |
} |
} |
290 |
$this->_result = $this->_proxy->getAttributes(); |
$this->_result = $this->_proxy->getAttributes(); |
291 |
|
|
292 |
// trace |
// trace |
293 |
//print "_result = " . Dumper($this->_result); |
if ($this->trace) { |
294 |
print "_result - count = " . sizeof($this->_result) . "<br/>"; |
//print "_result = " . Dumper($this->_result); |
295 |
|
print "_result - count = " . sizeof($this->_result) . "<br/>"; |
296 |
|
} |
297 |
|
|
298 |
// pass data to MemoryDataSource |
// pass data to MemoryDataSource |
299 |
|
|