PHP Класс LdapTools\Utilities\TSPropertyArray

См. также: https://msdn.microsoft.com/en-us/library/ff635189.aspx
Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$postBinary string
$signature string
$tsProperty TSProperty[]

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

Метод Описание
__construct ( mixed $tsPropertyArray = null ) Construct in one of the following ways:
add ( TSProperty $tsProperty ) Add a TSProperty object. If it already exists, it will be overwritten.
get ( string $propName ) : TSProperty Get a TSProperty object by its property name (ie. CtxWFProfilePath).
getPostBinary ( ) : string Get any binary data that was after the decoded binary TSPropertyArray data.
getSignature ( ) : string Get the signature value for the TSPropertyArray data.
getTSProperties ( ) : TSProperty[] Get all TSProperty objects.
has ( string $propName ) : boolean Check if a specific TSProperty exists by its property name.
isSignatureValid ( ) : boolean Check whether the signature is valid, thus signifying a valid data structure.
remove ( string $propName ) Remove a TSProperty by its property name (ie. CtxMinEncryptionLevel).
set ( string $propName, mixed $propValue ) Set the value for a specific TSProperty by its name.
toArray ( ) : array Get a simple associative array containing of all TSProperty names and values.
toBinary ( ) : string Get the full binary representation of the userParameters containing the TSPropertyArray data.

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

Метод Описание
addTSPropData ( string $tsPropertyArray, integer $tsPropCount ) : integer Given the start of TSPropertyArray hex data, and the count for the number of TSProperty structures in contains, parse and split out the individual TSProperty structures. Return the full length of the TSPropertyArray data.
decode ( string $tsPropArray ) : array Given the TSPropertyArray binary data, extract out all of the TSProperty values.
getTsPropObj ( string $propName ) : TSProperty
validateProp ( string $propName )

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

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

- Pass an array of TSProperty key => value pairs (See DEFAULTS constant). - Pass the TSPropertyArray binary value. The object representation of that will be decoded and constructed. - Pass nothing and a default set of TSProperty key => value pairs will be used (See DEFAULTS constant).
public __construct ( mixed $tsPropertyArray = null )
$tsPropertyArray mixed

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

Add a TSProperty object. If it already exists, it will be overwritten.
public add ( TSProperty $tsProperty )
$tsProperty TSProperty

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

Given the start of TSPropertyArray hex data, and the count for the number of TSProperty structures in contains, parse and split out the individual TSProperty structures. Return the full length of the TSPropertyArray data.
protected addTSPropData ( string $tsPropertyArray, integer $tsPropCount ) : integer
$tsPropertyArray string
$tsPropCount integer
Результат integer The length of the data in the TSPropertyArray

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

Given the TSPropertyArray binary data, extract out all of the TSProperty values.
protected decode ( string $tsPropArray ) : array
$tsPropArray string
Результат array

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

Get a TSProperty object by its property name (ie. CtxWFProfilePath).
public get ( string $propName ) : TSProperty
$propName string
Результат TSProperty

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

Get any binary data that was after the decoded binary TSPropertyArray data.
public getPostBinary ( ) : string
Результат string

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

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

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

Get all TSProperty objects.
public getTSProperties ( ) : TSProperty[]
Результат TSProperty[]

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

protected getTsPropObj ( string $propName ) : TSProperty
$propName string
Результат TSProperty

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

Check if a specific TSProperty exists by its property name.
public has ( string $propName ) : boolean
$propName string
Результат boolean

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

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

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

Remove a TSProperty by its property name (ie. CtxMinEncryptionLevel).
public remove ( string $propName )
$propName string

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

Set the value for a specific TSProperty by its name.
public set ( string $propName, mixed $propValue )
$propName string
$propValue mixed

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

Get a simple associative array containing of all TSProperty names and values.
public toArray ( ) : array
Результат array

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

Get the full binary representation of the userParameters containing the TSPropertyArray data.
public toBinary ( ) : string
Результат string

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

protected validateProp ( string $propName )
$propName string

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

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

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

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

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

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

protected TSProperty[],LdapTools\Utilities $tsProperty
Результат TSProperty[]