Sections
Voir aussi...
- Abstract_Item
- Abstract_List
- Admin_Helper
- auth_index
- Browser_Helper
- config_auth
- core_controller
- default_index
- File_Helper
- Folder_Helper
- Form_Helper
- GenList2_po_enclass
- GenList2_po_frclass
- GenList2_po_Generic
- Image_Helper
- LangTranslationManager
- MenuAdmin_Helper
- Mysql_Helper
- Pager_Helper
- Référence PHP
- YSMAuth
- YSMAuth_Container
- YSMAuthArray_Container
YSMAuth
Description
Gère l'authentification des usagers
Synopsis de la classe
YSMAuth { /* Propriétés */ private integer $authChecks = 0 protected boolean $advancedsecurity = false protected boolean $allowLogin = false protected array $errors = array() protected array $fields = null protected boolean $isConnected = false private string $prefix = P protected boolean $rememberUsernameWithCookie = true protected integer $rememberMe = 14 public array $storages = array(); protected array $variables = array() /* Méthodes */ public void __construct([mixed $storages = null]) public string|boolean addUser(string $username, string $password[, string $additional = '']) public void addStorage(YSMAuth_Container $storage) public string|boolean changePassword(string $username, string $password) public boolean checkAuth() public void deleteCurrentAccount(string $password, string $password2) public boolean getAuth() public mixed getAuthData(string $name) public string getAuthForm() public array getAuthFormData() protected null|string getCurrentUser() private array getGenericAuthInfo(string $method) public string getHTMLErrors() public null|string getPostFieldName(string $fieldtype) public string getPostPasswordField() public string getPostUsernameField() public string getRedirectURI() public string getStatus() public string getUsername() public mixed getVariable(string $key[, mixed $defaultValue = '']) public boolean handleLogin([boolean $withredirect = true[, string referer = null]]) public boolean hasRights(string $rightType, string $objectType[, integer $objectUid = 0]) public boolean isAdmin() public boolean isConnected() public array listUsers() public boolean login(string $username, array $user) public boolean logout() protected void removeCookie(string $name) public string|boolean removeUser(string $username) public integer sessionValidThru() public void setAdvancedSecurity([boolean $flag = true]) public void setAllowLogin([boolean $allowLogin = true]) protected void setCookie(string $name, string $value[ integer $expired = 0]) public void setVariable(string $key, mixed $value) public boolean userExists(string $username) public false|array verifyLogin(string $username, string $password[, string $method = ''[, mixed $extra = null]]) }
Dernière modification: 2014-09-03 13:35:54 par Yan Morin
Hébergé par ProgYSM