LdapTools\Security\SecurityDescriptor::toggleAclPresent PHP Method

toggleAclPresent() protected method

protected toggleAclPresent ( boolean $present, string $identifier )
$present boolean
$identifier string
    protected function toggleAclPresent($present, $identifier)
    {
        if ($present) {
            $this->controlFlags->add(ControlFlags::FLAG[$identifier . 'ACL_PRESENT']);
        } else {
            $this->controlFlags->remove(ControlFlags::FLAG[$identifier . 'ACL_PRESENT']);
        }
        return $this;
    }