LdapTools\Utilities\GPOLink::modifyOptions PHP Метод

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

Modifies a specific bit in the options flag. Ignores it if it is already set to the desired action.
protected modifyOptions ( boolean $action, integer $int )
$action boolean
$int integer
    protected function modifyOptions($action, $int)
    {
        if ($this->isOptionFlagSet($int) === $action) {
            return $this;
        }
        $action = $int == self::FLAGS['IGNORED'] ? !$action : $action;
        if ($action) {
            $this->options = (int) $this->options | (int) $int;
        } else {
            $this->options = (int) $this->options ^ (int) $int;
        }
        return $this;
    }