PHP Класс LdapTools\Utilities\DialInData

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

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

Свойство Тип Описание
$callbackPhoneNumber Hex representation of a phone number configured for the user on which the answerer should call back.
$signature string
$userPrivilege Dial-in bit-mask (NoCallback = 1, AdminSetCallback = 2, CallerSetCallback = 4, DialinPrivilege = 8)

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

Метод Описание
__construct ( string | null $dialInData = null )
getCallbackPhoneNumber ( ) : string Get the CallbackPhoneNumber as a hex value. The encoding process for this value is currently unknown.
getSignature ( ) : string Get the signature value for the dial-in data.
getUserPrivilege ( ) : integer Get the UserPrivilege bit-mask.
isSignatureValid ( ) : boolean Check whether the signature is valid, thus signifying a valid data structure.
setCallbackPhoneNumber ( string $callbackPhoneNumber ) Set the CallbackPhoneNumber as a hex value. The encoding process for this value is currently unknown.
setUserPrivilege ( integer $userPrivilege ) Set the UserPrivilege bit-mask.
toBinary ( ) : string Get the binary representation of the dial-in data for the userParameters value.

Защищенные методы

Метод Описание
dec2hex ( integer $int, integer $padLength = 2 ) : string Need to make sure hex values are always an even length, so pad as needed.
decode ( string $binary ) Decode and parse the binary dial-in data from the userParameters attribute (the data between 44 and 96 bytes).

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

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

public __construct ( string | null $dialInData = null )
$dialInData string | null

dec2hex() защищенный метод

Need to make sure hex values are always an even length, so pad as needed.
protected dec2hex ( integer $int, integer $padLength = 2 ) : string
$int integer
$padLength integer The hex string must be padded to this length (with zeros).
Результат string

decode() защищенный метод

Decode and parse the binary dial-in data from the userParameters attribute (the data between 44 and 96 bytes).
protected decode ( string $binary )
$binary string

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

Get the CallbackPhoneNumber as a hex value. The encoding process for this value is currently unknown.
public getCallbackPhoneNumber ( ) : string
Результат string

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

Get the signature value for the dial-in data.
public getSignature ( ) : string
Результат string

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

Get the UserPrivilege bit-mask.
public getUserPrivilege ( ) : integer
Результат integer

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

Check whether the signature is valid, thus signifying a valid data structure.
public isSignatureValid ( ) : boolean
Результат boolean

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

Set the CallbackPhoneNumber as a hex value. The encoding process for this value is currently unknown.
public setCallbackPhoneNumber ( string $callbackPhoneNumber )
$callbackPhoneNumber string

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

Set the UserPrivilege bit-mask.
public setUserPrivilege ( integer $userPrivilege )
$userPrivilege integer

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

Get the binary representation of the dial-in data for the userParameters value.
public toBinary ( ) : string
Результат string

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

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

Hex representation of a phone number configured for the user on which the answerer should call back.
protected $callbackPhoneNumber

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

protected string $signature
Результат string

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

Dial-in bit-mask (NoCallback = 1, AdminSetCallback = 2, CallerSetCallback = 4, DialinPrivilege = 8)
protected $userPrivilege