PHP 인터페이스 Adldap\Connections\ProviderInterface

파일 보기 프로젝트 열기: adldap2/adldap2

공개 메소드들

메소드 설명
__construct ( DomainConfiguration | array $configuration, Adldap\Connections\ConnectionInterface $connection, Adldap\Schemas\SchemaInterface $schema = null ) Constructor.
__destruct ( ) Destructor.
auth ( ) : Guard Returns a new Auth Guard instance.
connect ( string | null $username = null, string | null $password = null ) : Adldap\Connections\ProviderInterface Connects and Binds to the Domain Controller.
getConfiguration ( ) : DomainConfiguration Returns the current configuration instance.
getConnection ( ) : Adldap\Connections\ConnectionInterface Returns the current connection instance.
getDefaultGuard ( Adldap\Connections\ConnectionInterface $connection, DomainConfiguration $configuration ) : Guard Returns a new default Guard instance.
getGuard ( ) : Guard Returns the current Guard instance.
getSchema ( ) : Adldap\Schemas\SchemaInterface Returns the current LDAP attribute schema.
make ( ) : Factory Returns a new Model factory instance.
search ( ) : Factory Returns a new Search factory instance.
setConfiguration ( DomainConfiguration | array $configuration = [] ) Sets the current configuration.
setConnection ( Adldap\Connections\ConnectionInterface $connection = null ) Sets the current connection.
setGuard ( Adldap\Auth\GuardInterface $guard ) Sets the current Guard instance.
setSchema ( Adldap\Schemas\SchemaInterface $schema = null ) Sets the current LDAP attribute schema.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( DomainConfiguration | array $configuration, Adldap\Connections\ConnectionInterface $connection, Adldap\Schemas\SchemaInterface $schema = null )
$configuration Adldap\Configuration\DomainConfiguration | array
$connection Adldap\Connections\ConnectionInterface
$schema Adldap\Schemas\SchemaInterface

__destruct() 공개 메소드

Closes the current LDAP connection if it exists.
public __destruct ( )

auth() 공개 메소드

Returns a new Auth Guard instance.
public auth ( ) : Guard
리턴 Adldap\Auth\Guard

connect() 공개 메소드

If no username or password is specified, then the configured administrator credentials are used.
public connect ( string | null $username = null, string | null $password = null ) : Adldap\Connections\ProviderInterface
$username string | null
$password string | null
리턴 Adldap\Connections\ProviderInterface

getConfiguration() 공개 메소드

Returns the current configuration instance.
public getConfiguration ( ) : DomainConfiguration
리턴 Adldap\Configuration\DomainConfiguration

getConnection() 공개 메소드

Returns the current connection instance.
public getConnection ( ) : Adldap\Connections\ConnectionInterface
리턴 Adldap\Connections\ConnectionInterface

getDefaultGuard() 공개 메소드

Returns a new default Guard instance.
public getDefaultGuard ( Adldap\Connections\ConnectionInterface $connection, DomainConfiguration $configuration ) : Guard
$connection Adldap\Connections\ConnectionInterface
$configuration Adldap\Configuration\DomainConfiguration
리턴 Adldap\Auth\Guard

getGuard() 공개 메소드

Returns the current Guard instance.
public getGuard ( ) : Guard
리턴 Adldap\Auth\Guard

getSchema() 공개 메소드

Returns the current LDAP attribute schema.
public getSchema ( ) : Adldap\Schemas\SchemaInterface
리턴 Adldap\Schemas\SchemaInterface

make() 공개 메소드

Returns a new Model factory instance.
public make ( ) : Factory
리턴 Adldap\Models\Factory

setConfiguration() 공개 메소드

Sets the current configuration.
public setConfiguration ( DomainConfiguration | array $configuration = [] )
$configuration Adldap\Configuration\DomainConfiguration | array

setConnection() 공개 메소드

Sets the current connection.
public setConnection ( Adldap\Connections\ConnectionInterface $connection = null )
$connection Adldap\Connections\ConnectionInterface

setGuard() 공개 메소드

Sets the current Guard instance.
public setGuard ( Adldap\Auth\GuardInterface $guard )
$guard Adldap\Auth\GuardInterface

setSchema() 공개 메소드

Sets the current LDAP attribute schema.
public setSchema ( Adldap\Schemas\SchemaInterface $schema = null )
$schema Adldap\Schemas\SchemaInterface