PHP 클래스 LdapTools\Connection\LdapServerPool

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config LdapTools\DomainConfiguration
$dns LdapTools\Utilities\Dns
$selectionMethod The method to use when ordering the servers array.
$tcp LdapTools\Utilities\TcpSocket

공개 메소드들

메소드 설명
__construct ( DomainConfiguration $config, TcpSocket $tcp = null, Dns $dns = null )
getSelectionMethod ( ) : string Get the selection method for checking servers.
getServer ( ) : string Retrieve the first available LDAP server.
getSortedServersArray ( ) : array Uses the selected method to decide how to return the server array for the check.
setSelectionMethod ( string $method ) Set the selection method for checking servers (ie. 'random', 'order').

보호된 메소드들

메소드 설명
getServersFromDns ( ) : array Attempt to lookup the LDAP servers from the DNS name.
isServerAvailable ( string $server ) : boolean Check if a LDAP server is up and available.
shuffleServers ( array $servers ) : array Returns a randomized array of the servers.

메소드 상세

__construct() 공개 메소드

public __construct ( DomainConfiguration $config, TcpSocket $tcp = null, Dns $dns = null )
$config LdapTools\DomainConfiguration
$tcp LdapTools\Utilities\TcpSocket
$dns LdapTools\Utilities\Dns

getSelectionMethod() 공개 메소드

Get the selection method for checking servers.
public getSelectionMethod ( ) : string
리턴 string

getServer() 공개 메소드

Retrieve the first available LDAP server.
public getServer ( ) : string
리턴 string

getServersFromDns() 보호된 메소드

Attempt to lookup the LDAP servers from the DNS name.
protected getServersFromDns ( ) : array
리턴 array The LDAP servers.

getSortedServersArray() 공개 메소드

Uses the selected method to decide how to return the server array for the check.
public getSortedServersArray ( ) : array
리턴 array

isServerAvailable() 보호된 메소드

Check if a LDAP server is up and available.
protected isServerAvailable ( string $server ) : boolean
$server string
리턴 boolean

setSelectionMethod() 공개 메소드

Set the selection method for checking servers (ie. 'random', 'order').
public setSelectionMethod ( string $method )
$method string

shuffleServers() 보호된 메소드

Returns a randomized array of the servers.
protected shuffleServers ( array $servers ) : array
$servers array
리턴 array

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected DomainConfiguration,LdapTools $config
리턴 LdapTools\DomainConfiguration

$dns 보호되어 있는 프로퍼티

protected Dns,LdapTools\Utilities $dns
리턴 LdapTools\Utilities\Dns

$selectionMethod 보호되어 있는 프로퍼티

The method to use when ordering the servers array.
protected $selectionMethod

$tcp 보호되어 있는 프로퍼티

protected TcpSocket,LdapTools\Utilities $tcp
리턴 LdapTools\Utilities\TcpSocket