dolibarr 21.0.0-alpha
FormLdap Class Reference

Class to manage generation of HTML components for ldap module. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 selectLdapPasswordHashType ($selected='md5', $htmlname='ldaphashtype', $showempty=0)
 Return list of types of hash.
 
 selectLdapDnSynchroActive ($selected=0, $htmlname='activesynchro', $exclude=array(), $scriptonly=0, $showempty=0)
 Return list of type of synchronization.
 
 selectLdapServerType ($selected='openldap', $htmlname='type', $showempty=0)
 Return list of ldap server types.
 
 selectLdapServerProtocolVersion ($selected='3', $htmlname='ldapprotocolversion', $showempty=0)
 Return list of ldap server protocol version.
 

Detailed Description

Class to manage generation of HTML components for ldap module.

Definition at line 29 of file html.formldap.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormLdap::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 52 of file html.formldap.class.php.

Member Function Documentation

◆ selectLdapDnSynchroActive()

FormLdap::selectLdapDnSynchroActive ( $selected = 0,
$htmlname = 'activesynchro',
$exclude = array(),
$scriptonly = 0,
$showempty = 0 )

Return list of type of synchronization.

Parameters
int$selectedPreselected type
string$htmlnameName of field in form
string[]$excludeExclude values from the list
int<0,3>$scriptonly Add warning if synchro only work with a script (0 = disable, 1 = Dolibarr2ldap, 2 = ldap2dolibarr, 3 = all)
int$showemptyAdd an empty field
Returns
string HTML select string

Definition at line 117 of file html.formldap.class.php.

◆ selectLdapPasswordHashType()

FormLdap::selectLdapPasswordHashType ( $selected = 'md5',
$htmlname = 'ldaphashtype',
$showempty = 0 )

Return list of types of hash.

Parameters
string$selectedPreselected type
string$htmlnameName of field in form
int$showemptyAdd an empty field
Returns
string HTML select string

Definition at line 73 of file html.formldap.class.php.

◆ selectLdapServerProtocolVersion()

FormLdap::selectLdapServerProtocolVersion ( $selected = '3',
$htmlname = 'ldapprotocolversion',
$showempty = 0 )

Return list of ldap server protocol version.

Parameters
string$selectedPreselected type
string$htmlnameName of field in form
int$showemptyAdd an empty field
Returns
string HTML select string

Definition at line 184 of file html.formldap.class.php.

◆ selectLdapServerType()

FormLdap::selectLdapServerType ( $selected = 'openldap',
$htmlname = 'type',
$showempty = 0 )

Return list of ldap server types.

Parameters
string$selectedPreselected type
string$htmlnameName of field in form
int$showemptyAdd an empty field
Returns
string HTML select string

Definition at line 156 of file html.formldap.class.php.


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