dolibarr 19.0.3
modGeneratePassNone Class Reference

Class to generate a password according to rule 'no password'. More...

Inheritance diagram for modGeneratePassNone:
Collaboration diagram for modGeneratePassNone:

Public Member Functions

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

Detailed Description

Class to generate a password according to rule 'no password'.

Definition at line 31 of file modGeneratePassNone.class.php.

Constructor & Destructor Documentation

◆ __construct()

modGeneratePassNone::__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 62 of file modGeneratePassNone.class.php.

References conf(), and user.

Member Function Documentation

◆ getDescription()

modGeneratePassNone::getDescription ( )

Return description of module.

Returns
string Description of text

Reimplemented from ModeleGenPassword.

Definition at line 79 of file modGeneratePassNone.class.php.

◆ getExample()

modGeneratePassNone::getExample ( )

Return an example of password generated by this module.

Returns
string Example of password

Reimplemented from ModeleGenPassword.

Definition at line 90 of file modGeneratePassNone.class.php.

◆ getNewGeneratedPassword()

modGeneratePassNone::getNewGeneratedPassword ( )

Build new password.

Returns
string Return a new generated password

Reimplemented from ModeleGenPassword.

Definition at line 100 of file modGeneratePassNone.class.php.

◆ validatePassword()

modGeneratePassNone::validatePassword ( $password)

Validate a password.

This function is called by User->setPassword() and internally to validate that the password matches the constraints.

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

Reimplemented from ModeleGenPassword.

Definition at line 112 of file modGeneratePassNone.class.php.


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