src/LdapTools/AttributeConverter/ConvertGroupMembership.php
protected function removeCurrentGroups()
    {
        $valuesToRemove = $this->getCurrentLdapAttributeValue($this->options['from_attribute']);
        $valuesToRemove = is_null($valuesToRemove) ? [] : $valuesToRemove;
        $valuesToRemove = is_array($valuesToRemove)  ? $valuesToRemove : [$valuesToRemove];

        foreach ($valuesToRemove as $value) {
            $this->addOperation(parent::toLdap($value), Batch::TYPE['REMOVE']);
        }
protected function removeCurrentGroups()
    {
        $valuesToRemove = $this->getCurrentLdapAttributeValue($this->options['from_attribute']);
        $valuesToRemove = is_null($valuesToRemove) ? [] : $valuesToRemove;
        $valuesToRemove = is_array($valuesToRemove)  ? $valuesToRemove : [$valuesToRemove];

        foreach ($valuesToRemove as $value) {
            $this->addOperation(parent::toLdap($value), Batch::TYPE['REMOVE']);
        }
protected function removeCurrentGroups ( ) { $ valuesToRemove = $ this -> getCurrentLdapAttributeValue ( $ this -> options [ 'from_attribute' ] ) ; $ valuesToRemove = is_null ( $ valuesToRemove ) ? [ ] : $ valuesToRemove ; $ valuesToRemove = is_array ( $ valuesToRemove ) ? $ valuesToRemove : [ $ valuesToRemove ] ; foreach ( $ valuesToRemove as $ value ) { $ this -> addOperation ( parent :: toLdap ( $ value ) , Batch :: TYPE [ 'REMOVE' ] ) ; }
Gets the current group membership and generates operations to remove them all.

@throws \LdapTools\Exception\AttributeConverterException
Gets the current group membership and generates operations to remove them all .