PHP Class LdapTools\Connection\LastErrorStrategy

Author: Chad Sikorra ([email protected])
Datei anzeigen Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$connection resource
$diagnosticOpt string

Public Methods

Method Description
__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.

Method Details

__construct() public method

public __construct ( resource $connection )
$connection resource

getDiagnosticMessage() public method

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

getErrorNumber() public method

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

getExtendedErrorNumber() public method

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
return integer

getInstance() public static method

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

getLastErrorMessage() public method

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

Property Details

$connection protected_oe property

protected resource $connection
return resource

$diagnosticOpt protected_oe property

protected string $diagnosticOpt
return string