dolibarr  16.0.1
Public Member Functions | List of all members
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. 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...
 
- 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 rule 'no password'.

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

Constructor & Destructor Documentation

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 70 of file modGeneratePassNone.class.php.

References conf(), db, and user.

Member Function Documentation

modGeneratePassNone::getDescription ( )

Return description of module.

Returns
string Description of text

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

modGeneratePassNone::getExample ( )

Return an example of password generated by this module.

Returns
string Example of password

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

modGeneratePassNone::getNewGeneratedPassword ( )

Build new password.

Returns
string Return a new generated password

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

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

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


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