PageRenderTime 36ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/APIDoc/Usermanagement/Model/Models_Usermanagement_Auth.html

http://vaselinengine.googlecode.com/
HTML | 459 lines | 345 code | 100 blank | 14 comment | 0 complexity | 6a07a5a53d7e0781c600816135e8ff16 MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-1.0, GPL-2.0
  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 Models_Usermanagement_Auth</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 Models_Usermanagement_Auth</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-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
  19. | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  20. </div>
  21. <div class="info-box-body">
  22. <!-- ========== Info from phpDoc block ========= -->
  23. <p class="short-description">Auth Model. Singleton</p>
  24. <ul class="tags">
  25. <li><span class="field">author:</span> Konstantin Shamko &lt;<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>&gt;</li>
  26. <li><span class="field">version:</span> 0.0.1</li>
  27. <li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
  28. <li><span class="field">license:</span> New</li>
  29. </ul>
  30. <p class="notes">
  31. Located in <a class="field" href="_app---Models---Usermanagement---Auth.php.html">/app/Models/Usermanagement/Auth.php</a> (line <span class="field">14</span>)
  32. </p>
  33. <pre>Zend_Auth_Adapter_DbTable
  34. |
  35. --Models_Usermanagement_Auth</pre>
  36. </div>
  37. </div>
  38. <a name="sec-var-summary"></a>
  39. <div class="info-box">
  40. <div class="info-box-title">Variable Summary</span></div>
  41. <div class="nav-bar">
  42. <a href="#sec-description">Description</a> |
  43. <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
  44. |
  45. <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  46. </div>
  47. <div class="info-box-body">
  48. <div class="var-summary">
  49. <div class="var-title">
  50. <span class="var-type">string</span>
  51. <a href="#$_credentialColumn" title="details" class="var-name">$_credentialColumn</a>
  52. </div>
  53. <div class="var-title">
  54. <span class="var-type">string</span>
  55. <a href="#$_credentialTreatment" title="details" class="var-name">$_credentialTreatment</a>
  56. </div>
  57. <div class="var-title">
  58. <span class="var-type">string</span>
  59. <a href="#$_identityColumn" title="details" class="var-name">$_identityColumn</a>
  60. </div>
  61. <div class="var-title">
  62. <span class="var-type">Zend_Session_Namespace</span>
  63. <a href="#$_session" title="details" class="var-name">$_session</a>
  64. </div>
  65. <div class="var-title">
  66. <span class="var-type">Zend_Db</span>
  67. <a href="#$_zendDB" title="details" class="var-name">$_zendDB</a>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <a name="sec-method-summary"></a>
  73. <div class="info-box">
  74. <div class="info-box-title">Method Summary</span></div>
  75. <div class="nav-bar">
  76. <a href="#sec-description">Description</a> |
  77. <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
  78. |
  79. <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
  80. </div>
  81. <div class="info-box-body">
  82. <div class="method-summary">
  83. <div class="method-definition">
  84. static <span class="method-result"><a href="../../Usermanagement/Model/Models_Usermanagement_Auth.html">Models_Usermanagement_Auth</a></span>
  85. <a href="#getInstance" title="details" class="method-name">getInstance</a>
  86. ()
  87. </div>
  88. <div class="method-definition">
  89. <span class="method-result">Models_Usermanagement_Auth</span>
  90. <a href="#__construct" title="details" class="method-name">__construct</a>
  91. ()
  92. </div>
  93. <div class="method-definition">
  94. <span class="method-result">Zend_Db_Table_Row</span>
  95. <a href="#getUserSession" title="details" class="method-name">getUserSession</a>
  96. ()
  97. </div>
  98. <div class="method-definition">
  99. <span class="method-result">bool</span>
  100. <a href="#isLoggedIn" title="details" class="method-name">isLoggedIn</a>
  101. ()
  102. </div>
  103. <div class="method-definition">
  104. <span class="method-result">object</span>
  105. <a href="#login" title="details" class="method-name">login</a>
  106. (<span class="var-type">string</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>)
  107. </div>
  108. <div class="method-definition">
  109. <span class="method-result">void</span>
  110. <a href="#logout" title="details" class="method-name">logout</a>
  111. ()
  112. </div>
  113. <div class="method-definition">
  114. <span class="method-result">void</span>
  115. <a href="#setUserSession" title="details" class="method-name">setUserSession</a>
  116. ()
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <a name="sec-vars"></a>
  122. <div class="info-box">
  123. <div class="info-box-title">Variables</div>
  124. <div class="nav-bar">
  125. <a href="#sec-description">Description</a> |
  126. <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
  127. |
  128. <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  129. </div>
  130. <div class="info-box-body">
  131. <a name="var$_credentialColumn" id="$_credentialColumn"><!-- --></A>
  132. <div class="oddrow">
  133. <div class="var-header">
  134. <span class="var-title">
  135. <span class="var-type">string</span>
  136. <span class="var-name">$_credentialColumn</span>
  137. = <span class="var-default"> 'user_password'</span> (line <span class="line-number">28</span>)
  138. </span>
  139. </div>
  140. <!-- ========== Info from phpDoc block ========= -->
  141. <p class="short-description">name of the DB field to use as password</p>
  142. <ul class="tags">
  143. <li><span class="field">access:</span> protected</li>
  144. </ul>
  145. </div>
  146. <a name="var$_credentialTreatment" id="$_credentialTreatment"><!-- --></A>
  147. <div class="evenrow">
  148. <div class="var-header">
  149. <span class="var-title">
  150. <span class="var-type">string</span>
  151. <span class="var-name">$_credentialTreatment</span>
  152. = <span class="var-default"> 'MD5(?) AND user_active =1'</span> (line <span class="line-number">35</span>)
  153. </span>
  154. </div>
  155. <!-- ========== Info from phpDoc block ========= -->
  156. <p class="short-description">Password encryption type</p>
  157. <ul class="tags">
  158. <li><span class="field">access:</span> protected</li>
  159. </ul>
  160. </div>
  161. <a name="var$_identityColumn" id="$_identityColumn"><!-- --></A>
  162. <div class="oddrow">
  163. <div class="var-header">
  164. <span class="var-title">
  165. <span class="var-type">string</span>
  166. <span class="var-name">$_identityColumn</span>
  167. = <span class="var-default"> 'user_login'</span> (line <span class="line-number">21</span>)
  168. </span>
  169. </div>
  170. <!-- ========== Info from phpDoc block ========= -->
  171. <p class="short-description">name of the DB field to use as login</p>
  172. <ul class="tags">
  173. <li><span class="field">access:</span> protected</li>
  174. </ul>
  175. </div>
  176. <a name="var$_session" id="$_session"><!-- --></A>
  177. <div class="evenrow">
  178. <div class="var-header">
  179. <span class="var-title">
  180. <span class="var-type">Zend_Session_Namespace</span>
  181. <span class="var-name">$_session</span>
  182. = <span class="var-default"> false</span> (line <span class="line-number">42</span>)
  183. </span>
  184. </div>
  185. <!-- ========== Info from phpDoc block ========= -->
  186. <p class="short-description">Session to store userdata</p>
  187. <ul class="tags">
  188. <li><span class="field">access:</span> protected</li>
  189. </ul>
  190. </div>
  191. <a name="var$_zendDB" id="$_zendDB"><!-- --></A>
  192. <div class="oddrow">
  193. <div class="var-header">
  194. <span class="var-title">
  195. <span class="var-type">Zend_Db</span>
  196. <span class="var-name">$_zendDB</span>
  197. (line <span class="line-number">49</span>)
  198. </span>
  199. </div>
  200. <!-- ========== Info from phpDoc block ========= -->
  201. <p class="short-description">DB object</p>
  202. <ul class="tags">
  203. <li><span class="field">access:</span> protected</li>
  204. </ul>
  205. </div>
  206. </div>
  207. </div>
  208. <a name="sec-methods"></a>
  209. <div class="info-box">
  210. <div class="info-box-title">Methods</div>
  211. <div class="nav-bar">
  212. <a href="#sec-description">Description</a> |
  213. <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
  214. <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
  215. </div>
  216. <div class="info-box-body">
  217. <A NAME='method_detail'></A>
  218. <a name="methodgetInstance" id="getInstance"><!-- --></a>
  219. <div class="evenrow">
  220. <div class="method-header">
  221. <span class="method-title">static method getInstance</span> (line <span class="line-number">80</span>)
  222. </div>
  223. <!-- ========== Info from phpDoc block ========= -->
  224. <p class="short-description">Singleton realization. Call this to get instance of this class</p>
  225. <ul class="tags">
  226. <li><span class="field">access:</span> public</li>
  227. </ul>
  228. <div class="method-signature">
  229. static
  230. <span class="method-result"><a href="../../Usermanagement/Model/Models_Usermanagement_Auth.html">Models_Usermanagement_Auth</a></span>
  231. <span class="method-name">
  232. getInstance
  233. </span>
  234. ()
  235. </div>
  236. </div>
  237. <a name="method__construct" id="__construct"><!-- --></a>
  238. <div class="oddrow">
  239. <div class="method-header">
  240. <span class="method-title">Constructor __construct</span> (line <span class="line-number">69</span>)
  241. </div>
  242. <!-- ========== Info from phpDoc block ========= -->
  243. <p class="short-description">Constructor</p>
  244. <ul class="tags">
  245. <li><span class="field">access:</span> public</li>
  246. </ul>
  247. <div class="method-signature">
  248. <span class="method-result">Models_Usermanagement_Auth</span>
  249. <span class="method-name">
  250. __construct
  251. </span>
  252. ()
  253. </div>
  254. </div>
  255. <a name="methodgetUserSession" id="getUserSession"><!-- --></a>
  256. <div class="evenrow">
  257. <div class="method-header">
  258. <span class="method-title">getUserSession</span> (line <span class="line-number">118</span>)
  259. </div>
  260. <!-- ========== Info from phpDoc block ========= -->
  261. <p class="short-description">Returns userdata from session</p>
  262. <ul class="tags">
  263. <li><span class="field">access:</span> public</li>
  264. </ul>
  265. <div class="method-signature">
  266. <span class="method-result">Zend_Db_Table_Row</span>
  267. <span class="method-name">
  268. getUserSession
  269. </span>
  270. ()
  271. </div>
  272. </div>
  273. <a name="methodisLoggedIn" id="isLoggedIn"><!-- --></a>
  274. <div class="oddrow">
  275. <div class="method-header">
  276. <span class="method-title">isLoggedIn</span> (line <span class="line-number">135</span>)
  277. </div>
  278. <!-- ========== Info from phpDoc block ========= -->
  279. <p class="short-description">Checks if user is logged in</p>
  280. <ul class="tags">
  281. <li><span class="field">access:</span> public</li>
  282. </ul>
  283. <div class="method-signature">
  284. <span class="method-result">bool</span>
  285. <span class="method-name">
  286. isLoggedIn
  287. </span>
  288. ()
  289. </div>
  290. </div>
  291. <a name="methodlogin" id="login"><!-- --></a>
  292. <div class="evenrow">
  293. <div class="method-header">
  294. <span class="method-title">login</span> (line <span class="line-number">95</span>)
  295. </div>
  296. <!-- ========== Info from phpDoc block ========= -->
  297. <p class="short-description">Login</p>
  298. <ul class="tags">
  299. <li><span class="field">access:</span> public</li>
  300. </ul>
  301. <div class="method-signature">
  302. <span class="method-result">object</span>
  303. <span class="method-name">
  304. login
  305. </span>
  306. (<span class="var-type">string</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$password</span>)
  307. </div>
  308. <ul class="parameters">
  309. <li>
  310. <span class="var-type">string</span>
  311. <span class="var-name">$username</span> </li>
  312. <li>
  313. <span class="var-type">string</span>
  314. <span class="var-name">$password</span> </li>
  315. </ul>
  316. </div>
  317. <a name="methodlogout" id="logout"><!-- --></a>
  318. <div class="oddrow">
  319. <div class="method-header">
  320. <span class="method-title">logout</span> (line <span class="line-number">145</span>)
  321. </div>
  322. <!-- ========== Info from phpDoc block ========= -->
  323. <p class="short-description">Performs logout action</p>
  324. <ul class="tags">
  325. <li><span class="field">access:</span> public</li>
  326. </ul>
  327. <div class="method-signature">
  328. <span class="method-result">void</span>
  329. <span class="method-name">
  330. logout
  331. </span>
  332. ()
  333. </div>
  334. </div>
  335. <a name="methodsetUserSession" id="setUserSession"><!-- --></a>
  336. <div class="evenrow">
  337. <div class="method-header">
  338. <span class="method-title">setUserSession</span> (line <span class="line-number">109</span>)
  339. </div>
  340. <!-- ========== Info from phpDoc block ========= -->
  341. <p class="short-description">Saves userdata into session</p>
  342. <ul class="tags">
  343. <li><span class="field">access:</span> public</li>
  344. </ul>
  345. <div class="method-signature">
  346. <span class="method-result">void</span>
  347. <span class="method-name">
  348. setUserSession
  349. </span>
  350. ()
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. <p class="notes" id="credit">
  356. Documentation generated on Mon, 01 Mar 2010 18:58:50 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
  357. </p>
  358. </div></body>
  359. </html>