LdapTools\DomainConfiguration::getLdapType PHP Метод

getLdapType() публичный Метод

Get the LDAP type set for this domain (ie. Active Directory, OpenLDAP, etc).
public getLdapType ( ) : string
Результат string
    public function getLdapType()
    {
        return $this->config['ldapType'];
    }

Usage Example

Пример #1
0
 /**
  * Given the LDAP type, determine the BindStrategy to use.
  *
  * @param DomainConfiguration $config
  * @return ADBindUserStrategy|BindUserStrategy
  */
 public static function getInstance(DomainConfiguration $config)
 {
     if (LdapConnection::TYPE_AD == $config->getLdapType()) {
         return new ADBindUserStrategy($config);
     } else {
         return new self($config);
     }
 }
All Usage Examples Of LdapTools\DomainConfiguration::getLdapType