PHP Class LdapTools\Connection\LastErrorStrategy

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$connection resource
$diagnosticOpt string

Méthodes publiques

Méthode 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 méthode

public __construct ( resource $connection )
$connection resource

getDiagnosticMessage() public méthode

Get the full diagnostic error message.
public getDiagnosticMessage ( ) : string
Résultat string

getErrorNumber() public méthode

Get the last error number from LDAP.
public getErrorNumber ( ) : integer
Résultat integer

getExtendedErrorNumber() public méthode

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
Résultat integer

getInstance() public static méthode

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

getLastErrorMessage() public méthode

Get the last error message from LDAP.
public getLastErrorMessage ( ) : string
Résultat string

Property Details

$connection protected_oe property

protected resource $connection
Résultat resource

$diagnosticOpt protected_oe property

protected string $diagnosticOpt
Résultat string