LdapTools\AttributeConverter\ConvertGroupMembership::createOperationsFromValues PHP Метод

createOperationsFromValues() защищенный Метод

Given the set of array values create the correct operation.
protected createOperationsFromValues ( array $values )
$values array
    protected function createOperationsFromValues(array $values)
    {
        // In the case of a 'set' or 'reset' operation all current group membership should be removed.
        if ($this->shouldRemoveCurrentGroups()) {
            $this->removeCurrentGroups();
        }
        // Only if this is not a reset operation, otherwise there is nothing left to do.
        if (!($this->getOperationType() == AttributeConverterInterface::TYPE_MODIFY && $this->getBatch()->isTypeRemoveAll())) {
            $batchType = $this->getBatchTypeForOperation();
            foreach ($values as $value) {
                $this->addOperation($this->getDnFromValue($value), $batchType);
            }
        }
    }