| 12 |
* $Id$ |
* $Id$ |
| 13 |
* |
* |
| 14 |
* $Log$ |
* $Log$ |
| 15 |
|
* Revision 1.3 2003/03/09 15:50:36 joko |
| 16 |
|
* + additional metadata for Autodia |
| 17 |
|
* |
| 18 |
* Revision 1.2 2003/03/05 17:28:43 joko |
* Revision 1.2 2003/03/05 17:28:43 joko |
| 19 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
| 20 |
* |
* |
| 159 |
* type => 'rpc', |
* type => 'rpc', |
| 160 |
* metadata => array( Host => 'localhost', Port => '8765' ), |
* metadata => array( Host => 'localhost', Port => '8765' ), |
| 161 |
* ); |
* ); |
| 162 |
* $source = new GenericDataSource($locator); |
* $source = ne w GenericDataSource($locator); |
| 163 |
* $this->set_data_source( &$source ); |
* $this->set_data_source( &$source ); |
| 164 |
* </code> |
* </code> |
| 165 |
* |
* |
| 169 |
* type => 'mysql', |
* type => 'mysql', |
| 170 |
* dsn => 'known dsn markup', |
* dsn => 'known dsn markup', |
| 171 |
* ); |
* ); |
| 172 |
* $source = new GenericDataSource($locator); |
* $source = ne w GenericDataSource($locator); |
| 173 |
* $this->set_data_source( &$source ); |
* $this->set_data_source( &$source ); |
| 174 |
* </code> |
* </code> |
| 175 |
* |
* |
| 329 |
//$this->_locator->_datasource_type = $query[datasource]; |
//$this->_locator->_datasource_type = $query[datasource]; |
| 330 |
//$locator[_datasource_type] = $query[datasource]; |
//$locator[_datasource_type] = $query[datasource]; |
| 331 |
|
|
| 332 |
|
/** |
| 333 |
|
* <!-- Autodia --> |
| 334 |
|
* can do: (this is metadata supplied for Autodia, don't delete!) |
| 335 |
|
* $this->_locator = new DataSource_Locator() |
| 336 |
|
* |
| 337 |
|
*/ |
| 338 |
|
|
| 339 |
// build master locator |
// build master locator |
| 340 |
$this->_locator = php::mkComponent('DataSource::Locator', $locator, array( datasource_type => $query[datasource] ) ); |
$this->_locator = php::mkComponent('DataSource::Locator', $locator, array( datasource_type => $query[datasource] ) ); |
| 341 |
//exit; |
//exit; |
| 382 |
//exit; |
//exit; |
| 383 |
|
|
| 384 |
|
|
| 385 |
|
/** |
| 386 |
|
* <!-- Autodia --> |
| 387 |
|
* can do: (this is metadata supplied for Autodia, don't delete!) |
| 388 |
|
* $proxy = new DesignPattern_RemoteProxy() |
| 389 |
|
* |
| 390 |
|
*/ |
| 391 |
|
|
| 392 |
|
|
| 393 |
// --- Proxy selector/dispatcher ... |
// --- Proxy selector/dispatcher ... |
| 394 |
|
|
| 395 |
switch ($this->_locator->_datasource_type) { |
switch ($this->_locator->_datasource_type) { |
| 485 |
// $this->create_handler(); |
// $this->create_handler(); |
| 486 |
|
|
| 487 |
|
|
| 488 |
|
/** |
| 489 |
|
* <!-- Autodia --> |
| 490 |
|
* can do: (this is metadata supplied for Autodia, don't delete!) |
| 491 |
|
* $adapter = new DataSource_Adapter_phpHtmlLib_DataListSource() |
| 492 |
|
* |
| 493 |
|
*/ |
| 494 |
|
|
| 495 |
// V1: |
// V1: |
| 496 |
//$this->create_adapter($adapter_module, $this->function, $this->arguments); |
//$this->create_adapter($adapter_module, $this->function, $this->arguments); |
| 497 |
|
|