Auth_OpenID_DatabaseConnection.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <!-- template designed by Marco Von Ballmoos -->
  6. <title>Docs For Class Auth_OpenID_DatabaseConnection</title>
  7. <link rel="stylesheet" href="../media/stylesheet.css" />
  8. <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
  9. </head>
  10. <body>
  11. <div class="page-body">
  12. <h2 class="class-name">Class Auth_OpenID_DatabaseConnection</h2>
  13. <a name="sec-description"></a>
  14. <div class="info-box">
  15. <div class="info-box-title">Description</div>
  16. <div class="nav-bar">
  17. <span class="disabled">Description</span> |
  18. <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  19. </div>
  20. <div class="info-box-body">
  21. <!-- ========== Info from phpDoc block ========= -->
  22. <p class="short-description">An empty base class intended to emulate PEAR connection</p>
  23. <p class="description"><p>functionality in applications that supply their own database abstraction mechanisms. See <a href="../OpenID/Auth_OpenID_SQLStore.html">Auth_OpenID_SQLStore</a> for more information. You should subclass this class if you need to create an SQL store that needs to access its database using an application's database abstraction layer instead of a PEAR database connection. Any subclass of Auth_OpenID_DatabaseConnection MUST adhere to the interface specified here.</p></p>
  24. <p class="notes">
  25. Located in <a class="field" href="_Auth---OpenID---DatabaseConnection.php.html">/Auth/OpenID/DatabaseConnection.php</a> (line <span class="field">25</span>)
  26. </p>
  27. <pre></pre>
  28. </div>
  29. </div>
  30. <a name="sec-method-summary"></a>
  31. <div class="info-box">
  32. <div class="info-box-title">Method Summary</span></div>
  33. <div class="nav-bar">
  34. <a href="#sec-description">Description</a> |
  35. <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
  36. </div>
  37. <div class="info-box-body">
  38. <div class="method-summary">
  39. <div class="method-definition">
  40. <span class="method-result">void</span>
  41. <a href="#autoCommit" title="details" class="method-name">autoCommit</a>
  42. (<span class="var-type">bool</span>&nbsp;<span class="var-name">$mode</span>)
  43. </div>
  44. <div class="method-definition">
  45. <span class="method-result">void</span>
  46. <a href="#begin" title="details" class="method-name">begin</a>
  47. ()
  48. </div>
  49. <div class="method-definition">
  50. <span class="method-result">void</span>
  51. <a href="#commit" title="details" class="method-name">commit</a>
  52. ()
  53. </div>
  54. <div class="method-definition">
  55. <span class="method-result">array</span>
  56. <a href="#getAll" title="details" class="method-name">getAll</a>
  57. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  58. </div>
  59. <div class="method-definition">
  60. <span class="method-result">mixed</span>
  61. <a href="#getOne" title="details" class="method-name">getOne</a>
  62. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  63. </div>
  64. <div class="method-definition">
  65. <span class="method-result">array</span>
  66. <a href="#getRow" title="details" class="method-name">getRow</a>
  67. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  68. </div>
  69. <div class="method-definition">
  70. <span class="method-result">mixed</span>
  71. <a href="#query" title="details" class="method-name">query</a>
  72. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  73. </div>
  74. <div class="method-definition">
  75. <span class="method-result">void</span>
  76. <a href="#rollback" title="details" class="method-name">rollback</a>
  77. ()
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <a name="sec-methods"></a>
  83. <div class="info-box">
  84. <div class="info-box-title">Methods</div>
  85. <div class="nav-bar">
  86. <a href="#sec-description">Description</a> |
  87. <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
  88. </div>
  89. <div class="info-box-body">
  90. <A NAME='method_detail'></A>
  91. <a name="methodautoCommit" id="autoCommit"><!-- --></a>
  92. <div class="evenrow">
  93. <div class="method-header">
  94. <span class="method-title">autoCommit</span> (line <span class="line-number">32</span>)
  95. </div>
  96. <!-- ========== Info from phpDoc block ========= -->
  97. <p class="short-description">Sets auto-commit mode on this database connection.</p>
  98. <div class="method-signature">
  99. <span class="method-result">void</span>
  100. <span class="method-name">
  101. autoCommit
  102. </span>
  103. (<span class="var-type">bool</span>&nbsp;<span class="var-name">$mode</span>)
  104. </div>
  105. <ul class="parameters">
  106. <li>
  107. <span class="var-type">bool</span>
  108. <span class="var-name">$mode</span><span class="var-description">: True if auto-commit is to be used; false if not.</span> </li>
  109. </ul>
  110. </div>
  111. <a name="methodbegin" id="begin"><!-- --></a>
  112. <div class="oddrow">
  113. <div class="method-header">
  114. <span class="method-title">begin</span> (line <span class="line-number">58</span>)
  115. </div>
  116. <!-- ========== Info from phpDoc block ========= -->
  117. <p class="short-description">Starts a transaction on this connection, if supported.</p>
  118. <div class="method-signature">
  119. <span class="method-result">void</span>
  120. <span class="method-name">
  121. begin
  122. </span>
  123. ()
  124. </div>
  125. </div>
  126. <a name="methodcommit" id="commit"><!-- --></a>
  127. <div class="evenrow">
  128. <div class="method-header">
  129. <span class="method-title">commit</span> (line <span class="line-number">65</span>)
  130. </div>
  131. <!-- ========== Info from phpDoc block ========= -->
  132. <p class="short-description">Commits a transaction on this connection, if supported.</p>
  133. <div class="method-signature">
  134. <span class="method-result">void</span>
  135. <span class="method-name">
  136. commit
  137. </span>
  138. ()
  139. </div>
  140. </div>
  141. <a name="methodgetAll" id="getAll"><!-- --></a>
  142. <div class="oddrow">
  143. <div class="method-header">
  144. <span class="method-title">getAll</span> (line <span class="line-number">126</span>)
  145. </div>
  146. <!-- ========== Info from phpDoc block ========= -->
  147. <p class="short-description">Run an SQL query with the specified parameters, if any.</p>
  148. <ul class="tags">
  149. <li><span class="field">return:</span> An array of arrays representing the result of the query; each array is keyed on column name.</li>
  150. </ul>
  151. <div class="method-signature">
  152. <span class="method-result">array</span>
  153. <span class="method-name">
  154. getAll
  155. </span>
  156. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  157. </div>
  158. <ul class="parameters">
  159. <li>
  160. <span class="var-type">string</span>
  161. <span class="var-name">$sql</span><span class="var-description">: An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.</span> </li>
  162. <li>
  163. <span class="var-type">array</span>
  164. <span class="var-name">$params</span><span class="var-description">: An array of parameters to insert into the SQL string using this connection's escaping mechanism.</span> </li>
  165. </ul>
  166. </div>
  167. <a name="methodgetOne" id="getOne"><!-- --></a>
  168. <div class="evenrow">
  169. <div class="method-header">
  170. <span class="method-title">getOne</span> (line <span class="line-number">91</span>)
  171. </div>
  172. <!-- ========== Info from phpDoc block ========= -->
  173. <p class="short-description">Run an SQL query and return the first column of the first row of the result set, if any.</p>
  174. <ul class="tags">
  175. <li><span class="field">return:</span> The value of the first column of the first row of the result set. False if no such result was found.</li>
  176. </ul>
  177. <div class="method-signature">
  178. <span class="method-result">mixed</span>
  179. <span class="method-name">
  180. getOne
  181. </span>
  182. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  183. </div>
  184. <ul class="parameters">
  185. <li>
  186. <span class="var-type">string</span>
  187. <span class="var-name">$sql</span><span class="var-description">: An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.</span> </li>
  188. <li>
  189. <span class="var-type">array</span>
  190. <span class="var-name">$params</span><span class="var-description">: An array of parameters to insert into the SQL string using this connection's escaping mechanism.</span> </li>
  191. </ul>
  192. </div>
  193. <a name="methodgetRow" id="getRow"><!-- --></a>
  194. <div class="oddrow">
  195. <div class="method-header">
  196. <span class="method-title">getRow</span> (line <span class="line-number">109</span>)
  197. </div>
  198. <!-- ========== Info from phpDoc block ========= -->
  199. <p class="short-description">Run an SQL query and return the first row of the result set, if any.</p>
  200. <ul class="tags">
  201. <li><span class="field">return:</span> The first row of the result set, if any, keyed on column name. False if no such result was found.</li>
  202. </ul>
  203. <div class="method-signature">
  204. <span class="method-result">array</span>
  205. <span class="method-name">
  206. getRow
  207. </span>
  208. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  209. </div>
  210. <ul class="parameters">
  211. <li>
  212. <span class="var-type">string</span>
  213. <span class="var-name">$sql</span><span class="var-description">: An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.</span> </li>
  214. <li>
  215. <span class="var-type">array</span>
  216. <span class="var-name">$params</span><span class="var-description">: An array of parameters to insert into the SQL string using this connection's escaping mechanism.</span> </li>
  217. </ul>
  218. </div>
  219. <a name="methodquery" id="query"><!-- --></a>
  220. <div class="evenrow">
  221. <div class="method-header">
  222. <span class="method-title">query</span> (line <span class="line-number">51</span>)
  223. </div>
  224. <!-- ========== Info from phpDoc block ========= -->
  225. <p class="short-description">Run an SQL query with the specified parameters, if any.</p>
  226. <ul class="tags">
  227. <li><span class="field">return:</span> The result of calling this connection's internal query function. The type of result depends on the underlying database engine. This method is usually used when the result of a query is not important, like a DDL query.</li>
  228. </ul>
  229. <div class="method-signature">
  230. <span class="method-result">mixed</span>
  231. <span class="method-name">
  232. query
  233. </span>
  234. (<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">array()</span>])
  235. </div>
  236. <ul class="parameters">
  237. <li>
  238. <span class="var-type">string</span>
  239. <span class="var-name">$sql</span><span class="var-description">: An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.</span> </li>
  240. <li>
  241. <span class="var-type">array</span>
  242. <span class="var-name">$params</span><span class="var-description">: An array of parameters to insert into the SQL string using this connection's escaping mechanism.</span> </li>
  243. </ul>
  244. </div>
  245. <a name="methodrollback" id="rollback"><!-- --></a>
  246. <div class="oddrow">
  247. <div class="method-header">
  248. <span class="method-title">rollback</span> (line <span class="line-number">72</span>)
  249. </div>
  250. <!-- ========== Info from phpDoc block ========= -->
  251. <p class="short-description">Performs a rollback on this connection, if supported.</p>
  252. <div class="method-signature">
  253. <span class="method-result">void</span>
  254. <span class="method-name">
  255. rollback
  256. </span>
  257. ()
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <p class="notes" id="credit">
  263. Documentation generated on Tue, 21 Apr 2009 11:31:31 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
  264. </p>
  265. </div></body>
  266. </html>