10 |
* has to do. |
* has to do. |
11 |
* |
* |
12 |
* |
* |
13 |
|
* @author Andreas Motl <andreas.motl@ilo.de> |
14 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
15 |
* @module DataSource::Locator |
* @module DataSource::Locator |
16 |
* |
* |
20 |
* $Id$ |
* $Id$ |
21 |
* |
* |
22 |
* $Log$ |
* $Log$ |
23 |
|
* Revision 1.5 2003/03/05 15:40:39 joko |
24 |
|
* updated docu (phpDocumentor testing....) |
25 |
|
* |
26 |
* Revision 1.4 2003/03/05 15:26:23 joko |
* Revision 1.4 2003/03/05 15:26:23 joko |
27 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
28 |
* |
* |
80 |
* Pass an array to the constructor: (e.g.) |
* Pass an array to the constructor: (e.g.) |
81 |
* |
* |
82 |
* 1. for doing rpc-calls.... |
* 1. for doing rpc-calls.... |
83 |
|
* <code> |
84 |
* $locator = array( |
* $locator = array( |
85 |
* datasource_type => 'rpc', |
* datasource_type => 'rpc', |
86 |
* [adapter_type => 'phpHtmlLib',] |
* [adapter_type => 'phpHtmlLib',] |
88 |
* ); |
* ); |
89 |
* $source = new DataSource::Generic($locator); |
* $source = new DataSource::Generic($locator); |
90 |
* $this->set_data_source( &$source ); |
* $this->set_data_source( &$source ); |
91 |
|
* </code> |
92 |
* |
* |
93 |
* 2. [proposal] for common/oldschool datahandles.... |
* 2. [proposal] for common/oldschool datahandles.... |
94 |
|
* <code> |
95 |
* $locator = array( |
* $locator = array( |
96 |
* dsn => 'known dsn markup', |
* dsn => 'known dsn markup', |
97 |
* ); |
* ); |
98 |
* $source = new DataSource::Generic($locator); |
* $source = new DataSource::Generic($locator); |
99 |
* $this->set_data_source( &$source ); |
* $this->set_data_source( &$source ); |
100 |
|
* </code> |
101 |
* |
* |
102 |
* |
* |
103 |
* |
* |
108 |
* @license GNU LGPL (GNU Lesser General Public License) |
* @license GNU LGPL (GNU Lesser General Public License) |
109 |
* @link http://www.gnu.org/licenses/lgpl.txt |
* @link http://www.gnu.org/licenses/lgpl.txt |
110 |
* |
* |
|
* @subpackage DataSource |
|
111 |
* @name DataSource::Locator |
* @name DataSource::Locator |
112 |
* @filesource |
* @filesource |
113 |
* |
* |
122 |
* using metadata from $_options and some |
* using metadata from $_options and some |
123 |
* other presets. |
* other presets. |
124 |
* |
* |
125 |
* See '_buildLocator' which acts as a dispatcher |
* @see function build, which acts as a dispatcher |
126 |
* depending on $_options[datasource]. |
* depending on $_options[datasource]. |
127 |
* (main dispatching level) |
* (main dispatching level) |
128 |
* |
* |
129 |
* The structure of a full blown locator looks like this: |
* The structure of a full blown locator looks like this: |
130 |
* |
* |
131 |
|
* <code> |
132 |
* $locator = array( |
* $locator = array( |
133 |
* type => '<your type specifying the datasource-type>', |
* type => '<your type specifying the datasource-type>', |
134 |
* metadata => array( |
* metadata => array( |
136 |
* ), |
* ), |
137 |
* [dsn => '<your dsn markup>'], |
* [dsn => '<your dsn markup>'], |
138 |
* ); |
* ); |
139 |
|
* </code> |
140 |
* |
* |
141 |
* 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: |
142 |
|
* <code> |
143 |
* $locator = array( |
* $locator = array( |
144 |
* dsn => 'mysql://username:password@localhost/database', |
* dsn => 'mysql://username:password@localhost/database', |
145 |
* ); |
* ); |
146 |
|
* </code> |
147 |
* |
* |
148 |
* 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): |
149 |
|
* <code> |
150 |
* $locator = array( |
* $locator = array( |
151 |
* type => 'rpc', |
* type => 'rpc', |
152 |
* metadata => array( |
* metadata => array( |
155 |
* Port => '8765', |
* Port => '8765', |
156 |
* ) |
* ) |
157 |
* ); |
* ); |
158 |
|
* </code> |
159 |
|
* |
160 |
|
* @deprecated |
161 |
* |
* |
162 |
*/ |
*/ |
163 |
|
var $_locator_metadata = NULL; |
|
//var $_locator_metadata = NULL; |
|
164 |
|
|
165 |
|
|
166 |
/** |
/** |
167 |
* This var holds the arguments passed in to the constructor. |
* This var holds the arguments passed in to the constructor. |
168 |
* We will try to build full blown locator metadata information from that. |
* We will try to build full blown locator metadata information from that. |
169 |
* |
* |
170 |
*/ |
* @deprecated |
171 |
//var $_in = NULL; |
* |
172 |
|
*/ |
173 |
|
var $_in = NULL; |
174 |
|
|
175 |
/** |
/** |
176 |
* This var holds the locator metadata informations inside |
* This var holds the locator metadata informations inside |
177 |
* a single hash. This is returned from '->get()'. |
* a single hash. This is returned from '->get()'. |
178 |
* |
* |
179 |
*/ |
* @deprecated |
180 |
//var $_out = NULL; |
* |
181 |
|
*/ |
182 |
|
var $_out = NULL; |
183 |
|
|
184 |
|
|
185 |
/** |
/** |