class LdapProfileConf in Lightweight Directory Access Protocol (LDAP) 7
@file This class represents an ldap_profile module's configuration It is extended by LdapProfileConfAdmin for configuration and other admin functions
Hierarchy
- class \LdapProfileConf
Expanded class hierarchy of LdapProfileConf
File
- ldap_profile/
LdapProfileConf.class.php, line 9 - This class represents an ldap_profile module's configuration It is extended by LdapProfileConfAdmin for configuration and other admin functions
View source
class LdapProfileConf {
public $ldap_fields = array();
public $mapping = array();
public $derivedMapping = array();
public $inDatabase = FALSE;
public $servers = array();
protected $saveable = array(
'ldap_fields',
'mapping',
'derivedMapping',
);
function __construct() {
$this->servers = ldap_servers_get_servers(NULL, 'enabled');
$this
->load();
}
function load() {
if ($saved = variable_get("ldap_profile_conf", FALSE)) {
$this->inDatabase = TRUE;
foreach ($this->saveable as $property) {
if (isset($saved[$property])) {
$this->{$property} = $saved[$property];
}
}
}
else {
$this->inDatabase = FALSE;
}
}
/**
* Destructor Method
*/
function __destruct() {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LdapProfileConf:: |
public | property | ||
LdapProfileConf:: |
public | property | ||
LdapProfileConf:: |
public | property | ||
LdapProfileConf:: |
public | property | ||
LdapProfileConf:: |
protected | property | ||
LdapProfileConf:: |
public | property | ||
LdapProfileConf:: |
function | |||
LdapProfileConf:: |
function | 1 | ||
LdapProfileConf:: |
function | Destructor Method |