PHP Class LdapTools\AttributeConverter\ConvertGroupMembership

Author: Chad Sikorra ([email protected])
Inheritance: extends ConvertValueToDn, implements LdapTools\AttributeConverter\OperationGeneratorInterface, use trait OperationGeneratorTrait
Mostra file Open project: ldaptools/ldaptools

Public Methods

Method Description
getIsMultiValuedConverter ( )
getRemoveOriginalValue ( )
toLdap ( $values )

Protected Methods

Method Description
addOperation ( string $dn, integer $batchType ) Add the correct operation for the action as a post operation to the current operation.
createOperationsFromValues ( array $values ) Given the set of array values create the correct operation.
getBatchTypeForOperation ( ) : integer Get the batch type for the operation that was specified.
removeCurrentGroups ( ) Gets the current group membership and generates operations to remove them all.
shouldRemoveCurrentGroups ( ) : boolean

Method Details

addOperation() protected method

Add the correct operation for the action as a post operation to the current operation.
protected addOperation ( string $dn, integer $batchType )
$dn string
$batchType integer

createOperationsFromValues() protected method

Given the set of array values create the correct operation.
protected createOperationsFromValues ( array $values )
$values array

getBatchTypeForOperation() protected method

Get the batch type for the operation that was specified.
protected getBatchTypeForOperation ( ) : integer
return integer

getIsMultiValuedConverter() public method

getRemoveOriginalValue() public method

removeCurrentGroups() protected method

Gets the current group membership and generates operations to remove them all.
protected removeCurrentGroups ( )

shouldRemoveCurrentGroups() protected method

protected shouldRemoveCurrentGroups ( ) : boolean
return boolean

toLdap() public method

public toLdap ( $values )