PHP Класс LdapTools\Connection\LdapControl

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

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

Свойство Тип Описание
$criticality The criticality of the control.
$oid The OID for the control.
$value The value for the control.

Открытые методы

Метод Описание
__construct ( string $oid, boolean $criticality = false, mixed | null $value = null )
berEncodeInt ( integer $int ) : string A simple helper to BER encode an int for an ASN.1 structure for a basic LDAP control value.
getCriticality ( ) : boolean Get the criticality for the control.
getOid ( ) : string Get the OID for the control.
getValue ( ) : mixed Get the value for the control.
setCriticality ( boolean $criticality ) Set the criticality for the control.
setOid ( string $oid ) Set the OID for the control.
setValue ( mixed $value ) Set the value for the control.
toArray ( ) : array Get the control array structure that ldap_set_option expects.

Описание методов

__construct() публичный метод

public __construct ( string $oid, boolean $criticality = false, mixed | null $value = null )
$oid string
$criticality boolean
$value mixed | null

berEncodeInt() публичный статический метод

A simple helper to BER encode an int for an ASN.1 structure for a basic LDAP control value.
public static berEncodeInt ( integer $int ) : string
$int integer
Результат string The BER encoded ASN.1 structure to use for the LDAP control value.

getCriticality() публичный метод

Get the criticality for the control.
public getCriticality ( ) : boolean
Результат boolean

getOid() публичный метод

Get the OID for the control.
public getOid ( ) : string
Результат string

getValue() публичный метод

Get the value for the control.
public getValue ( ) : mixed
Результат mixed

setCriticality() публичный метод

Set the criticality for the control.
public setCriticality ( boolean $criticality )
$criticality boolean

setOid() публичный метод

Set the OID for the control.
public setOid ( string $oid )
$oid string

setValue() публичный метод

Set the value for the control.
public setValue ( mixed $value )
$value mixed

toArray() публичный метод

Get the control array structure that ldap_set_option expects.
public toArray ( ) : array
Результат array

Описание свойств

$criticality защищенное свойство

The criticality of the control.
protected $criticality

$oid защищенное свойство

The OID for the control.
protected $oid

$value защищенное свойство

The value for the control.
protected $value