LdapTools\Operation\Invoker\LdapOperationInvoker::resetLdapControls PHP Méthode

resetLdapControls() protected méthode

Reset any specific LDAP controls used with this operation. This is to make sure they are not accidentally used in future operations when it is not expected.
protected resetLdapControls ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface
    protected function resetLdapControls(LdapOperationInterface $operation)
    {
        foreach ($operation->getControls() as $control) {
            $reset = clone $control;
            $reset->setValue(false);
            $this->connection->setControl($reset);
        }
    }