blob: d77eca8dea866c8114b7d1d8edcd34ff6e5483d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
|
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Cinisis Database Reader: PhpIsisDb Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<img id="MSearchSelect" src="search/search.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</div>
</li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>PhpIsisDb Class Reference</h1><!-- doxytag: class="PhpIsisDb" --><!-- doxytag: inherits="IsisDb" --><div class="dynheader">
Inheritance diagram for PhpIsisDb:</div>
<div class="dynsection">
<div class="center">
<img src="classPhpIsisDb.png" usemap="#PhpIsisDb_map" alt=""/>
<map id="PhpIsisDb_map" name="PhpIsisDb_map">
<area href="interfaceIsisDb.html" alt="IsisDb" shape="rect" coords="0,0,68,24"/>
</map>
</div>
</div>
<p><a href="classPhpIsisDb-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#abb6db51373d065baf9135fd278653bc5">__construct</a> ($schema)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#af2266931746f6f2335b831be8b8333fb">read</a> ($id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a0491ce84e5a85e775f811f18e63ef0fb">entries</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a7f4f3a9fd6dab86bd3cb3149d65f92cd">example</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a849f238c3323f53431be1c225a914d98">tag</a> ($results)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a46f8c39b305f170e2cf8ae5f4d218e74">charset</a> (&$data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a8d8185060a26d4fe673844b2ea3db39a">logger</a> ($message)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a23761cc04114090a2863467b2accc80a">check</a> ($schema, $section=NULL)</td></tr>
<tr><td colspan="2"><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a536e4c67dda71a7c7dad9ffbac299f9b">$db</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a275e29f3711d37fc67cea340b564ddf3">$format</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPhpIsisDb.html#a0742105b3efab477fda99cd0561f98c7">$log</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>PHP-Isis implementation of <a class="el" href="interfaceIsisDb.html">IsisDb</a>.</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>This implementation is currently outdated and lacks basic functionalities such as subfield handling and therefore it's use is not recommended. </dd></dl>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="abb6db51373d065baf9135fd278653bc5"></a><!-- doxytag: member="PhpIsisDb::__construct" ref="abb6db51373d065baf9135fd278653bc5" args="($schema)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::__construct </td>
<td>(</td>
<td class="paramtype">$ </td>
<td class="paramname"> <em>schema</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interfaceIsisDb.html#ae1c0a3496d55f710d34c5c19ada7a66b">IsisDb::__construct()</a> </dd></dl>
<p>Implements <a class="el" href="interfaceIsisDb.html#ae1c0a3496d55f710d34c5c19ada7a66b">IsisDb</a>.</p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a46f8c39b305f170e2cf8ae5f4d218e74"></a><!-- doxytag: member="PhpIsisDb::charset" ref="a46f8c39b305f170e2cf8ae5f4d218e74" args="(&$data)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::charset </td>
<td>(</td>
<td class="paramtype">&$ </td>
<td class="paramname"> <em>data</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Charset conversion.</p>
<p>Converts a string from the database charset to UTF-8.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$data</em> </td><td>String to be converted.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>String converted to UTF-8. </dd></dl>
</div>
</div>
<a class="anchor" id="a23761cc04114090a2863467b2accc80a"></a><!-- doxytag: member="PhpIsisDb::check" ref="a23761cc04114090a2863467b2accc80a" args="($schema, $section=NULL)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static PhpIsisDb::check </td>
<td>(</td>
<td class="paramtype">$ </td>
<td class="paramname"> <em>schema</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">$ </td>
<td class="paramname"> <em>section</em> = <code>NULL</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check configuration.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interfaceIsisDb.html#af681b8f990b579f1835aa7ba4c83f1b8">IsisDb::check()</a> </dd></dl>
<p>Implements <a class="el" href="interfaceIsisDb.html#af681b8f990b579f1835aa7ba4c83f1b8">IsisDb</a>.</p>
</div>
</div>
<a class="anchor" id="a0491ce84e5a85e775f811f18e63ef0fb"></a><!-- doxytag: member="PhpIsisDb::entries" ref="a0491ce84e5a85e775f811f18e63ef0fb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::entries </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return number of entries in the database.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interfaceIsisDb.html#a86f38eca2b6d0835b60770d8a4e511ff">IsisDb::entries()</a> </dd></dl>
<p>Implements <a class="el" href="interfaceIsisDb.html#a86f38eca2b6d0835b60770d8a4e511ff">IsisDb</a>.</p>
</div>
</div>
<a class="anchor" id="a7f4f3a9fd6dab86bd3cb3149d65f92cd"></a><!-- doxytag: member="PhpIsisDb::example" ref="a7f4f3a9fd6dab86bd3cb3149d65f92cd" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::example </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return an example schema.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interfaceIsisDb.html#a857c10d90da64067efa17afb2f32edb6">IsisDb::example()</a> </dd></dl>
<p>Implements <a class="el" href="interfaceIsisDb.html#a857c10d90da64067efa17afb2f32edb6">IsisDb</a>.</p>
</div>
</div>
<a class="anchor" id="a8d8185060a26d4fe673844b2ea3db39a"></a><!-- doxytag: member="PhpIsisDb::logger" ref="a8d8185060a26d4fe673844b2ea3db39a" args="($message)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::logger </td>
<td>(</td>
<td class="paramtype">$ </td>
<td class="paramname"> <em>message</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Class logger.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$message</em> </td><td>Log message. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af2266931746f6f2335b831be8b8333fb"></a><!-- doxytag: member="PhpIsisDb::read" ref="af2266931746f6f2335b831be8b8333fb" args="($id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::read </td>
<td>(</td>
<td class="paramtype">$ </td>
<td class="paramname"> <em>id</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Read an entry.</p>
<p>The PHP-Isis API doen't implement such feature so we have to emulate it by geting all entries and using isis_data_seek() to get the desired record.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="interfaceIsisDb.html#a68335ec0db01ef03f0725621b38b5686">IsisDb::read()</a></dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>Subfield handling. </dd></dl>
<p>Implements <a class="el" href="interfaceIsisDb.html#a68335ec0db01ef03f0725621b38b5686">IsisDb</a>.</p>
</div>
</div>
<a class="anchor" id="a849f238c3323f53431be1c225a914d98"></a><!-- doxytag: member="PhpIsisDb::tag" ref="a849f238c3323f53431be1c225a914d98" args="($results)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::tag </td>
<td>(</td>
<td class="paramtype">$ </td>
<td class="paramname"> <em>results</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Tag results of a db query.</p>
<p>This function converts the keys of query result from field numbers to names.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$results</em> </td><td>Database query results.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Tagged database result. </dd></dl>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a536e4c67dda71a7c7dad9ffbac299f9b"></a><!-- doxytag: member="PhpIsisDb::$db" ref="a536e4c67dda71a7c7dad9ffbac299f9b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::$db</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Database resource. </p>
</div>
</div>
<a class="anchor" id="a275e29f3711d37fc67cea340b564ddf3"></a><!-- doxytag: member="PhpIsisDb::$format" ref="a275e29f3711d37fc67cea340b564ddf3" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::$format</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Database format, derived from $schema. </p>
</div>
</div>
<a class="anchor" id="a0742105b3efab477fda99cd0561f98c7"></a><!-- doxytag: member="PhpIsisDb::$log" ref="a0742105b3efab477fda99cd0561f98c7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PhpIsisDb::$log</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Class action log. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>classes/backends/PhpIsisDb.php</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Sep 2 12:20:43 2010 for Cinisis Database Reader by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
|