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
Datei anzeigen Open project: ldaptools/ldaptools

Public Methods

Method Description
__construct ( )
fromLdap ( $value )
getShouldAggregateValues ( )
isBatchSupported ( Batch $batch )
toLdap ( $value )

Protected Methods

Method 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 method

public __construct ( )

fromLdap() public method

public fromLdap ( $value )

getBitForAttribute() protected method

protected getBitForAttribute ( string $attribute ) : integer
$attribute string
return integer

getQueryOperator() protected method

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

getShouldAggregateValues() public method

isBatchSupported() public method

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

modifyBitmaskValue() protected method

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

modifyGroupScopeBit() protected method

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 method

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
return integer

shouldInvertValue() protected method

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

toLdap() public method

public toLdap ( $value )