PHP 클래스 LdapTools\Connection\LastErrorStrategy

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

보호된 프로퍼티들

프로퍼티 타입 설명
$connection resource
$diagnosticOpt string

공개 메소드들

메소드 설명
__construct ( resource $connection )
getDiagnosticMessage ( ) : string Get the full diagnostic error message.
getErrorNumber ( ) : integer Get the last error number from LDAP.
getExtendedErrorNumber ( ) : integer Is there a generic way to do this that isn't directory implementation specific? The constant LDAP_OPT_ERROR_NUMBER seems like the place to start, but it is not documented anywhere. So currently this will only return the last generic error number unless overridden.
getInstance ( string $type, resource $connection ) : ADLastErrorStrategy | LastErrorStrategy
getLastErrorMessage ( ) : string Get the last error message from LDAP.

메소드 상세

__construct() 공개 메소드

public __construct ( resource $connection )
$connection resource

getDiagnosticMessage() 공개 메소드

Get the full diagnostic error message.
public getDiagnosticMessage ( ) : string
리턴 string

getErrorNumber() 공개 메소드

Get the last error number from LDAP.
public getErrorNumber ( ) : integer
리턴 integer

getExtendedErrorNumber() 공개 메소드

Is there a generic way to do this that isn't directory implementation specific? The constant LDAP_OPT_ERROR_NUMBER seems like the place to start, but it is not documented anywhere. So currently this will only return the last generic error number unless overridden.
public getExtendedErrorNumber ( ) : integer
리턴 integer

getInstance() 공개 정적인 메소드

public static getInstance ( string $type, resource $connection ) : ADLastErrorStrategy | LastErrorStrategy
$type string
$connection resource
리턴 LdapTools\Connection\AD\ADLastErrorStrategy | LastErrorStrategy

getLastErrorMessage() 공개 메소드

Get the last error message from LDAP.
public getLastErrorMessage ( ) : string
리턴 string

프로퍼티 상세

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

protected resource $connection
리턴 resource

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

protected string $diagnosticOpt
리턴 string