You are here

function LdapProfileConf::load in Lightweight Directory Access Protocol (LDAP) 7

1 call to LdapProfileConf::load()
LdapProfileConf::__construct in ldap_profile/LdapProfileConf.class.php

File

ldap_profile/LdapProfileConf.class.php, line 28
This class represents an ldap_profile module's configuration It is extended by LdapProfileConfAdmin for configuration and other admin functions

Class

LdapProfileConf
@file This class represents an ldap_profile module's configuration It is extended by LdapProfileConfAdmin for configuration and other admin functions

Code

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;
  }
}