public static function getInstance() { if (Ldap::$ldap == null) { Ldap::$ldap = new Ldap(); } return Ldap::$ldap; }