function ldap_server::__construct in Lightweight Directory Access Protocol (LDAP) 6
Constructor Method
File
- includes/
ldap.server.inc, line 31  - Defines server classes and related functions.
 
Class
- ldap_server
 - LDAP Server Class
 
Code
function __construct($sid = 1) {
  if (is_null($sid)) {
    return;
  }
  $record = db_fetch_object(db_query("SELECT * FROM {ldap_servers} WHERE sid = %d", $sid));
  foreach ($this->properties as $property) {
    if (isset($record->{$property})) {
      $this->{$property} = $record->{$property};
    }
  }
}