| 19 |
* $Id$ |
* $Id$ |
| 20 |
* |
* |
| 21 |
* $Log$ |
* $Log$ |
| 22 |
|
* Revision 1.4 2003/03/05 15:26:23 joko |
| 23 |
|
* updated docu (phpDocumentor testing....) |
| 24 |
|
* |
| 25 |
* Revision 1.3 2003/03/05 15:21:54 joko |
* Revision 1.3 2003/03/05 15:21:54 joko |
| 26 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
| 27 |
* |
* |
| 37 |
/** |
/** |
| 38 |
* It helps DataSource::Generic working in different "operation modes". |
* It helps DataSource::Generic working in different "operation modes". |
| 39 |
* |
* |
| 40 |
* o Pass-Through-Reference: php Object will get passed through all layers |
* - Pass-Through-Reference: php Object will get passed through all layers |
| 41 |
* o Pass-Through-Memory: reference to a memory area will get used |
* - Pass-Through-Memory: reference to a memory area will get used |
| 42 |
* + Build-Locator: build locator from datasource-type and adapter-type |
* + Build-Locator: build locator from datasource-type and adapter-type |
| 43 |
* o Use-Locator: directly use DataSource::Locator instance passed in |
* - Use-Locator: directly use DataSource::Locator instance passed in |
| 44 |
* o Merge-Locators: merge metadata of two or more DataSource::Locator instances |
* - Merge-Locators: merge metadata of two or more DataSource::Locator instances |
| 45 |
* o Build-AutoLocator: use global constants making up our metadata |
* - Build-AutoLocator: use global constants making up our metadata |
| 46 |
* |
* |
| 47 |
* |
* <b>It can/should contain:</b> |
| 48 |
* <b>It can/should contain (flexible, just some parameters are required for each operation mode)</b> |
* (flexible, just some parameters are required for each operation mode) |
| 49 |
* |
* - an oldschool "dsn"-string (e.g. for rdbms-connection via PEAR) |
|
* o an oldschool "dsn"-string (e.g. for rdbms-connection via PEAR) |
|
| 50 |
* + name of a Proxy module to use to *wrap/hide* the connection/transport-layer |
* + name of a Proxy module to use to *wrap/hide* the connection/transport-layer |
| 51 |
* (e.g. DataSource::Proxy::XMLRPC via DesignPattern::RemoteProxy) |
* (e.g. DataSource::Proxy::XMLRPC via DesignPattern::RemoteProxy) |
| 52 |
* + metadata (a hash) directly describing *where* to connect to (e.g. 'Host', 'Port') |
* + metadata (a hash) directly describing *where* to connect to (e.g. 'Host', 'Port') |
| 53 |
* o an instance of an already instantiated arbitrary datasource handler (e.g. 'source') |
* - an instance of an already instantiated arbitrary datasource handler (e.g. 'source') |
| 54 |
* this will get propagated (pass-through-mode) |
* this will get propagated (pass-through-mode) |
| 55 |
* + a datasource-type (of 'rpc|mysql|csv-file|xml-file') |
* - a datasource-type (of 'rpc|mysql|csv-file|xml-file') |
| 56 |
* this will be mapped to a module name and used as a *Proxy* |
* this will be mapped to a module name and used as a *Proxy* |
| 57 |
* by the DataSource::Generic at runtime |
* by the DataSource::Generic at runtime |
| 58 |
* + an adapter-type (of 'phpHtmlLib|pear') |
* + an adapter-type (of 'phpHtmlLib|pear') |
| 59 |
* this will be mapped to a module name and used as an *Adapter* |
* this will be mapped to a module name and used as an *Adapter* |
| 60 |
* by the DataSource::Generic at runtime |
* by the DataSource::Generic at runtime |
| 61 |
* o names of global constants where to find these informations |
* - names of global constants where to find these informations |
| 62 |
* o datasource-type ('rpc|csv-file|...') <-> datasource-family ('orm|rdbms|odbms') |
* - datasource-type ('rpc|csv-file|...') <-> datasource-family ('orm|rdbms|odbms') |
| 63 |
* |
* |
| 64 |
* |
* |
| 65 |
* --- It can do |
* <b>It can do</b> |
| 66 |
* + builds a larger locator from a minimum of information passed in via constructor-arguments |
* + builds a larger locator from a minimum of information passed in via constructor-arguments |
| 67 |
* o direct fallback mode to some predefined constant names if locator is empty and above method fails |
* o direct fallback mode to some predefined constant names if locator is empty and above method fails |
| 68 |
* o direct fallback mode to some predefined values if just *everything* fails |
* o direct fallback mode to some predefined values if just *everything* fails |
| 69 |
* |
* |
| 70 |
* |
* |
| 71 |
* --- How to use? |
* <b>How to use?</b> |
| 72 |
* |
* |
| 73 |
* Pass an array holding "locator metadata" to the constructor. |
* Pass an array holding "locator metadata" to the constructor. |
| 74 |
* This module takes care of the rest. |
* This module takes care of the rest. |