LdapTools\Operation\Invoker\LdapOperationInvoker::resetLdapControls PHP 메소드

resetLdapControls() 보호된 메소드

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);
        }
    }