[ Index ] |
|
Code source de PRADO 3.0.6 |
1 <?php 2 /** 3 * IUserManager interface file 4 * 5 * @author Qiang Xue <qiang.xue@gmail.com> 6 * @link http://www.pradosoft.com/ 7 * @copyright Copyright © 2005 PradoSoft 8 * @license http://www.pradosoft.com/license/ 9 * @version $Id: IUserManager.php 1397 2006-09-07 07:55:53Z wei $ 10 * @package System.Security 11 */ 12 13 /** 14 * IUserManager interface 15 * 16 * IUserManager specifies the interface that must be implemented by 17 * a user manager class if it is to be used together with {@link TAuthManager} 18 * and {@link TUser}. 19 * 20 * @author Qiang Xue <qiang.xue@gmail.com> 21 * @version $Id: IUserManager.php 1397 2006-09-07 07:55:53Z wei $ 22 * @package System.Security 23 * @since 3.0 24 */ 25 interface IUserManager 26 { 27 /** 28 * @return string name for a guest user. 29 */ 30 public function getGuestName(); 31 /** 32 * Returns a user instance given the user name. 33 * @param string user name, null if it is a guest. 34 * @return TUser the user instance, null if the specified username is not in the user database. 35 */ 36 public function getUser($username=null); 37 /** 38 * Validates if the username and password are correct. 39 * @param string user name 40 * @param string password 41 * @return boolean true if validation is successful, false otherwise. 42 */ 43 public function validateUser($username,$password); 44 } 45 46 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |