LdapTools\Security\SecurityDescriptor::getAclSddlFlags PHP Method

getAclSddlFlags() protected method

Get the string flags that need to be prepended to the Dacl/Sacl SDDL string.
protected getAclSddlFlags ( Acl $acl ) : string
$acl LdapTools\Security\Acl\Acl
return string
    protected function getAclSddlFlags(Acl $acl)
    {
        $flags = '';
        foreach ($this->aclFlagMap as $flag => $name) {
            $name = $acl->getSddlIdentifier() . $name;
            if ($this->controlFlags->has(ControlFlags::FLAG[$name])) {
                $flags .= $flag;
            }
        }
        return $flags;
    }