dolibarr  9.0.0
Public Member Functions | List of all members
modGeneratePassPerso Class Reference

Class to generate a password according to personal rules. More...

+ Inheritance diagram for modGeneratePassPerso:
+ Collaboration diagram for modGeneratePassPerso:

Public Member Functions

 __construct ($db, $conf, $langs, $user)
 Constructor. More...
 
 getDescription ()
 Return description of module. More...
 
 getExample ()
 Return an example of password generated by this module. More...
 
 getNewGeneratedPassword ()
 Build new password. More...
 
 validatePassword ($password)
 Validate a password. More...
 
 consecutiveInterationSameCharacter ($password)
 consecutive iterations of the same character More...
 
- Public Member Functions inherited from ModeleGenPassword
 isEnabled ()
 Return if a module can be used or not. More...
 
 getDescription ()
 Return description of module. More...
 
 getExample ()
 Return an example of password generated by this module. More...
 
 getNewGeneratedPassword ()
 Build new password. More...
 
 validatePassword ($password)
 Validate a password. More...
 

Detailed Description

Class to generate a password according to personal rules.

Definition at line 34 of file modGeneratePassPerso.class.php.

Constructor & Destructor Documentation

◆ __construct()

modGeneratePassPerso::__construct (   $db,
  $conf,
  $langs,
  $user 
)

Constructor.

Parameters
DoliDB$dbDatabase handler
Conf$confHandler de conf
Translate$langsHandler de langue
User$userHandler du user connecte

Definition at line 73 of file modGeneratePassPerso.class.php.

Member Function Documentation

◆ consecutiveInterationSameCharacter()

modGeneratePassPerso::consecutiveInterationSameCharacter (   $password)

consecutive iterations of the same character

Parameters
string$passwordPassword to check
Returns
int 0 if KO, >0 if OK

Definition at line 211 of file modGeneratePassPerso.class.php.

◆ getDescription()

modGeneratePassPerso::getDescription ( )

Return description of module.

Returns
string Description of text

Definition at line 123 of file modGeneratePassPerso.class.php.

◆ getExample()

modGeneratePassPerso::getExample ( )

Return an example of password generated by this module.

Returns
string Example of password

Definition at line 134 of file modGeneratePassPerso.class.php.

References getNewGeneratedPassword().

◆ getNewGeneratedPassword()

modGeneratePassPerso::getNewGeneratedPassword ( )

Build new password.

Returns
string Return a new generated password

Definition at line 144 of file modGeneratePassPerso.class.php.

Referenced by getExample().

◆ validatePassword()

modGeneratePassPerso::validatePassword (   $password)

Validate a password.

Parameters
string$passwordPassword to check
Returns
int 0 if KO, >0 if OK

Definition at line 179 of file modGeneratePassPerso.class.php.


The documentation for this class was generated from the following file: