PHP Класс LdapTools\Connection\LastErrorStrategy

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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