dolibarr  20.0.0-alpha
Public Member Functions | List of all members
FormLdap Class Reference

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

Public Member Functions

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

Detailed Description

Class to manage generation of HTML components for ldap module.

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

Constructor & Destructor Documentation

◆ __construct()

FormLdap::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 51 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
array$excludeExclude values from the list
int$scriptonlyAdd 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 116 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 72 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 183 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 155 of file html.formldap.class.php.


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