/doc/APIDoc/Usermanagement/Model/Models_Usermanagement_Auth.html
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
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!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>
- <!-- template designed by Marco Von Ballmoos -->
- <title>Docs For Class Models_Usermanagement_Auth</title>
- <link rel="stylesheet" href="../../media/stylesheet.css" />
- <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
- </head>
- <body>
- <div class="page-body">
- <h2 class="class-name">Class Models_Usermanagement_Auth</h2>
-
- <a name="sec-description"></a>
- <div class="info-box">
- <div class="info-box-title">Description</div>
- <div class="nav-bar">
- <span class="disabled">Description</span> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Auth Model. Singleton</p>
- <ul class="tags">
- <li><span class="field">author:</span> Konstantin Shamko <<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>></li>
- <li><span class="field">version:</span> 0.0.1</li>
- <li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
- <li><span class="field">license:</span> New</li>
- </ul>
- <p class="notes">
- Located in <a class="field" href="_app---Models---Usermanagement---Auth.php.html">/app/Models/Usermanagement/Auth.php</a> (line <span class="field">14</span>)
- </p>
-
-
- <pre>Zend_Auth_Adapter_DbTable
- |
- --Models_Usermanagement_Auth</pre>
-
- </div>
- </div>
-
-
-
- <a name="sec-var-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Variable Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <div class="var-summary">
- <div class="var-title">
- <span class="var-type">string</span>
- <a href="#$_credentialColumn" title="details" class="var-name">$_credentialColumn</a>
- </div>
- <div class="var-title">
- <span class="var-type">string</span>
- <a href="#$_credentialTreatment" title="details" class="var-name">$_credentialTreatment</a>
- </div>
- <div class="var-title">
- <span class="var-type">string</span>
- <a href="#$_identityColumn" title="details" class="var-name">$_identityColumn</a>
- </div>
- <div class="var-title">
- <span class="var-type">Zend_Session_Namespace</span>
- <a href="#$_session" title="details" class="var-name">$_session</a>
- </div>
- <div class="var-title">
- <span class="var-type">Zend_Db</span>
- <a href="#$_zendDB" title="details" class="var-name">$_zendDB</a>
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-method-summary"></a>
- <div class="info-box">
- <div class="info-box-title">Method Summary</span></div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
-
- |
- <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
- </div>
- <div class="info-box-body">
- <div class="method-summary">
- <div class="method-definition">
- static <span class="method-result"><a href="../../Usermanagement/Model/Models_Usermanagement_Auth.html">Models_Usermanagement_Auth</a></span>
- <a href="#getInstance" title="details" class="method-name">getInstance</a>
- ()
- </div>
-
- <div class="method-definition">
- <span class="method-result">Models_Usermanagement_Auth</span>
- <a href="#__construct" title="details" class="method-name">__construct</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">Zend_Db_Table_Row</span>
- <a href="#getUserSession" title="details" class="method-name">getUserSession</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">bool</span>
- <a href="#isLoggedIn" title="details" class="method-name">isLoggedIn</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">object</span>
- <a href="#login" title="details" class="method-name">login</a>
- (<span class="var-type">string</span> <span class="var-name">$username</span>, <span class="var-type">string</span> <span class="var-name">$password</span>)
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#logout" title="details" class="method-name">logout</a>
- ()
- </div>
- <div class="method-definition">
- <span class="method-result">void</span>
- <a href="#setUserSession" title="details" class="method-name">setUserSession</a>
- ()
- </div>
- </div>
- </div>
- </div>
-
- <a name="sec-vars"></a>
- <div class="info-box">
- <div class="info-box-title">Variables</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
-
-
- |
- <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
-
- </div>
- <div class="info-box-body">
- <a name="var$_credentialColumn" id="$_credentialColumn"><!-- --></A>
- <div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">string</span>
- <span class="var-name">$_credentialColumn</span>
- = <span class="var-default"> 'user_password'</span> (line <span class="line-number">28</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">name of the DB field to use as password</p>
- <ul class="tags">
- <li><span class="field">access:</span> protected</li>
- </ul>
-
-
-
-
-
- </div>
- <a name="var$_credentialTreatment" id="$_credentialTreatment"><!-- --></A>
- <div class="evenrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">string</span>
- <span class="var-name">$_credentialTreatment</span>
- = <span class="var-default"> 'MD5(?) AND user_active =1'</span> (line <span class="line-number">35</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Password encryption type</p>
- <ul class="tags">
- <li><span class="field">access:</span> protected</li>
- </ul>
-
-
-
-
-
- </div>
- <a name="var$_identityColumn" id="$_identityColumn"><!-- --></A>
- <div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">string</span>
- <span class="var-name">$_identityColumn</span>
- = <span class="var-default"> 'user_login'</span> (line <span class="line-number">21</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">name of the DB field to use as login</p>
- <ul class="tags">
- <li><span class="field">access:</span> protected</li>
- </ul>
-
-
-
-
-
- </div>
- <a name="var$_session" id="$_session"><!-- --></A>
- <div class="evenrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">Zend_Session_Namespace</span>
- <span class="var-name">$_session</span>
- = <span class="var-default"> false</span> (line <span class="line-number">42</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Session to store userdata</p>
- <ul class="tags">
- <li><span class="field">access:</span> protected</li>
- </ul>
-
-
-
-
-
- </div>
- <a name="var$_zendDB" id="$_zendDB"><!-- --></A>
- <div class="oddrow">
-
- <div class="var-header">
- <span class="var-title">
- <span class="var-type">Zend_Db</span>
- <span class="var-name">$_zendDB</span>
- (line <span class="line-number">49</span>)
- </span>
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">DB object</p>
- <ul class="tags">
- <li><span class="field">access:</span> protected</li>
- </ul>
-
-
-
-
-
- </div>
-
- </div>
- </div>
-
- <a name="sec-methods"></a>
- <div class="info-box">
- <div class="info-box-title">Methods</div>
- <div class="nav-bar">
- <a href="#sec-description">Description</a> |
- <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
- <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
-
- </div>
- <div class="info-box-body">
- <A NAME='method_detail'></A>
- <a name="methodgetInstance" id="getInstance"><!-- --></a>
- <div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">static method getInstance</span> (line <span class="line-number">80</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Singleton realization. Call this to get instance of this class</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- static
- <span class="method-result"><a href="../../Usermanagement/Model/Models_Usermanagement_Auth.html">Models_Usermanagement_Auth</a></span>
- <span class="method-name">
- getInstance
- </span>
- ()
- </div>
-
-
-
- </div>
-
- <a name="method__construct" id="__construct"><!-- --></a>
- <div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">Constructor __construct</span> (line <span class="line-number">69</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Constructor</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">Models_Usermanagement_Auth</span>
- <span class="method-name">
- __construct
- </span>
- ()
- </div>
-
-
-
- </div>
- <a name="methodgetUserSession" id="getUserSession"><!-- --></a>
- <div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">getUserSession</span> (line <span class="line-number">118</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Returns userdata from session</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">Zend_Db_Table_Row</span>
- <span class="method-name">
- getUserSession
- </span>
- ()
- </div>
-
-
-
- </div>
- <a name="methodisLoggedIn" id="isLoggedIn"><!-- --></a>
- <div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">isLoggedIn</span> (line <span class="line-number">135</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Checks if user is logged in</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">bool</span>
- <span class="method-name">
- isLoggedIn
- </span>
- ()
- </div>
-
-
-
- </div>
- <a name="methodlogin" id="login"><!-- --></a>
- <div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">login</span> (line <span class="line-number">95</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Login</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">object</span>
- <span class="method-name">
- login
- </span>
- (<span class="var-type">string</span> <span class="var-name">$username</span>, <span class="var-type">string</span> <span class="var-name">$password</span>)
- </div>
-
- <ul class="parameters">
- <li>
- <span class="var-type">string</span>
- <span class="var-name">$username</span> </li>
- <li>
- <span class="var-type">string</span>
- <span class="var-name">$password</span> </li>
- </ul>
-
-
- </div>
- <a name="methodlogout" id="logout"><!-- --></a>
- <div class="oddrow">
-
- <div class="method-header">
- <span class="method-title">logout</span> (line <span class="line-number">145</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Performs logout action</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- logout
- </span>
- ()
- </div>
-
-
-
- </div>
- <a name="methodsetUserSession" id="setUserSession"><!-- --></a>
- <div class="evenrow">
-
- <div class="method-header">
- <span class="method-title">setUserSession</span> (line <span class="line-number">109</span>)
- </div>
-
- <!-- ========== Info from phpDoc block ========= -->
- <p class="short-description">Saves userdata into session</p>
- <ul class="tags">
- <li><span class="field">access:</span> public</li>
- </ul>
-
- <div class="method-signature">
- <span class="method-result">void</span>
- <span class="method-name">
- setUserSession
- </span>
- ()
- </div>
-
-
-
- </div>
-
- </div>
- </div>
-
-
- <p class="notes" id="credit">
- 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>
- </p>
- </div></body>
- </html>