24 |
* $Id$ |
* $Id$ |
25 |
* |
* |
26 |
* $Log$ |
* $Log$ |
27 |
|
* Revision 1.26 2003/03/11 16:41:47 joko |
28 |
|
* + fixed metadata for phpDocumentor |
29 |
|
* |
30 |
|
* Revision 1.25 2003/03/11 16:28:25 joko |
31 |
|
* + fixed metadata for phpDocumentor |
32 |
|
* |
33 |
|
* Revision 1.24 2003/03/11 04:49:25 joko |
34 |
|
* + fixed metadata for phpDocumentor |
35 |
|
* |
36 |
|
* Revision 1.23 2003/03/11 04:15:01 joko |
37 |
|
* + fixed metadata for phpDocumentor |
38 |
|
* |
39 |
* Revision 1.22 2003/03/11 04:03:54 joko |
* Revision 1.22 2003/03/11 04:03:54 joko |
40 |
* + fixed metadata for phpDocumentor |
* + fixed metadata for phpDocumentor |
41 |
* |
* |
148 |
* <code> |
* <code> |
149 |
* // 1. for doing rpc-calls.... |
* // 1. for doing rpc-calls.... |
150 |
* $locator = array( |
* $locator = array( |
151 |
* datasource_type => 'rpc', |
* datasource_type =\> 'rpc', |
152 |
* [adapter_type => 'phpHtmlLib',] |
* [adapter_type => 'phpHtmlLib',] |
153 |
* metadata => array( Host => 'localhost', Port => '8765' ), |
* metadata => array( Host => 'localhost', Port => '8765' ), |
154 |
* ); |
* ); |
155 |
* $source = ne w DataSource::Generic($locator); |
* $source = ne w DataSource::Generic($locator); |
156 |
* $this->set_data_source( &$source ); |
* $this->set_data_source( &$source ); |
157 |
* </code> |
* </code> |
158 |
* |
* <samp> |
|
* <code> |
|
159 |
* // 2. [proposal] for common/oldschool datahandles.... |
* // 2. [proposal] for common/oldschool datahandles.... |
160 |
* $locator = array( |
* $locator = array( |
161 |
* dsn => 'known dsn markup', |
* dsn => 'known dsn markup', |
162 |
* ); |
* ); |
163 |
* $source = ne w DataSource::Generic($locator); |
* $source = ne w DataSource::Generic($locator); |
164 |
* $this->set_data_source( &$source ); |
* $this->set_data_source( &$source ); |
165 |
* </code> |
* </samp> |
166 |
* |
* |
167 |
* |
* |
168 |
* |
* |
191 |
* depending on $_options[datasource]. <br> |
* depending on $_options[datasource]. <br> |
192 |
* (main dispatching level) |
* (main dispatching level) |
193 |
* |
* |
194 |
* <pre> |
* <br> |
195 |
|
* |
196 |
* The structure of a full blown locator looks like this: |
* The structure of a full blown locator looks like this: |
197 |
* <code> |
* <code> |
198 |
* $locator = array( |
* $locator = array( |
203 |
* [dsn => '<your dsn markup>'], |
* [dsn => '<your dsn markup>'], |
204 |
* ); |
* ); |
205 |
* </code> |
* </code> |
|
* </pre> |
|
206 |
* |
* |
207 |
* Example 1 - data is inside a rdbms, using a dsn to connect to it: |
* Example 1 - data is inside a rdbms, using a dsn to connect to it: |
208 |
* <code> |
* <code> |
|
* <pre> |
|
209 |
* $locator = array( |
* $locator = array( |
210 |
* dsn => 'mysql://username:password@localhost/database', |
* dsn => 'mysql://username:password@localhost/database', |
211 |
* ); |
* ); |
|
* </pre> |
|
212 |
* </code> |
* </code> |
213 |
* |
* |
214 |
* Example 2 - data is inside an odbms, reachable by doing remote procedure calls (rpc): |
* Example 2 - data is inside an odbms, reachable by doing remote procedure calls (rpc): |