PHP Class LdapTools\AttributeConverter\ConvertGroupType

See also: https://msdn.microsoft.com/en-us/library/cc223142.aspx
Author: Chad Sikorra ([email protected])
Inheritance: implements LdapTools\AttributeConverter\AttributeConverterInterface, use trait LdapTools\Utilities\ConverterUtilitiesTrait, use trait AttributeConverterTrait
Afficher le fichier Open project: ldaptools/ldaptools

Méthodes publiques

Méthode Description
__construct ( )
fromLdap ( $value )
getShouldAggregateValues ( )
isBatchSupported ( Batch $batch )
toLdap ( $value )

Méthodes protégées

Méthode Description
getBitForAttribute ( string $attribute ) : integer
getQueryOperator ( boolean $value ) : BaseOperator Transform a bool value into the bitwise operator needed for the LDAP filter.
modifyBitmaskValue ( integer $value, boolean $toggle, string $attribute ) : integer Modify the existing value based on the attributes bit.
modifyGroupScopeBit ( integer $lastValue, boolean $value ) Based on the current value, remove the bit for the scope that is already set before adding the new one (if the value is set to true for the scope to be active anyway).
modifyGroupTypeValue ( boolean $value ) : integer Given a bool value, do the needed bitwise comparison against the groupType value to either remove or add the bit from the overall value.
shouldInvertValue ( ) : boolean Check if this is a distribution type for the attribute. That type is just inverse of a security enabled type.

Method Details

__construct() public méthode

public __construct ( )

fromLdap() public méthode

public fromLdap ( $value )

getBitForAttribute() protected méthode

protected getBitForAttribute ( string $attribute ) : integer
$attribute string
Résultat integer

getQueryOperator() protected méthode

Transform a bool value into the bitwise operator needed for the LDAP filter.
protected getQueryOperator ( boolean $value ) : BaseOperator
$value boolean
Résultat LdapTools\Query\Operator\BaseOperator

getShouldAggregateValues() public méthode

isBatchSupported() public méthode

public isBatchSupported ( Batch $batch )
$batch LdapTools\BatchModify\Batch

modifyBitmaskValue() protected méthode

Modify the existing value based on the attributes bit.
protected modifyBitmaskValue ( integer $value, boolean $toggle, string $attribute ) : integer
$value integer
$toggle boolean
$attribute string
Résultat integer

modifyGroupScopeBit() protected méthode

Based on the current value, remove the bit for the scope that is already set before adding the new one (if the value is set to true for the scope to be active anyway).
protected modifyGroupScopeBit ( integer $lastValue, boolean $value )
$lastValue integer
$value boolean

modifyGroupTypeValue() protected méthode

Given a bool value, do the needed bitwise comparison against the groupType value to either remove or add the bit from the overall value.
protected modifyGroupTypeValue ( boolean $value ) : integer
$value boolean
Résultat integer

shouldInvertValue() protected méthode

Check if this is a distribution type for the attribute. That type is just inverse of a security enabled type.
protected shouldInvertValue ( ) : boolean
Résultat boolean

toLdap() public méthode

public toLdap ( $value )