PHP Class LdapTools\Utilities\TSPropertyArray

See also: https://msdn.microsoft.com/en-us/library/ff635189.aspx
Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$postBinary string
$signature string
$tsProperty TSProperty[]

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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 )

Method Details

__construct() public méthode

- 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() public méthode

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

addTSPropData() protected méthode

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
Résultat integer The length of the data in the TSPropertyArray

decode() protected méthode

Given the TSPropertyArray binary data, extract out all of the TSProperty values.
protected decode ( string $tsPropArray ) : array
$tsPropArray string
Résultat array

get() public méthode

Get a TSProperty object by its property name (ie. CtxWFProfilePath).
public get ( string $propName ) : TSProperty
$propName string
Résultat TSProperty

getPostBinary() public méthode

Get any binary data that was after the decoded binary TSPropertyArray data.
public getPostBinary ( ) : string
Résultat string

getSignature() public méthode

Get the signature value for the TSPropertyArray data.
public getSignature ( ) : string
Résultat string

getTSProperties() public méthode

Get all TSProperty objects.
public getTSProperties ( ) : TSProperty[]
Résultat TSProperty[]

getTsPropObj() protected méthode

protected getTsPropObj ( string $propName ) : TSProperty
$propName string
Résultat TSProperty

has() public méthode

Check if a specific TSProperty exists by its property name.
public has ( string $propName ) : boolean
$propName string
Résultat boolean

isSignatureValid() public méthode

Check whether the signature is valid, thus signifying a valid data structure.
public isSignatureValid ( ) : boolean
Résultat boolean

remove() public méthode

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

set() public méthode

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

toArray() public méthode

Get a simple associative array containing of all TSProperty names and values.
public toArray ( ) : array
Résultat array

toBinary() public méthode

Get the full binary representation of the userParameters containing the TSPropertyArray data.
public toBinary ( ) : string
Résultat string

validateProp() protected méthode

protected validateProp ( string $propName )
$propName string

Property Details

$postBinary protected_oe property

protected string $postBinary
Résultat string

$signature protected_oe property

protected string $signature
Résultat string

$tsProperty protected_oe property

protected TSProperty[],LdapTools\Utilities $tsProperty
Résultat TSProperty[]