Set on or off dispatch step (view rendering, layout rendering and response send)
@param string $step
@param boolean $enable
@throws ArchException
@return $this
548794
public function setDispatchStep(string $step, $enable)
    {
        switch ($step) {
            case self::RENDER_VIEW     : $this->renderView     = (bool) $enable; break;
            case self::RENDER_LAYOUT   : $this->renderLayout   = (bool) $enable; break;
            case self::RENDER_RESPONSE : $this->renderResponse = (bool) $enable; break;
            default : throw new ArchException('Dispatch step not found');
        }
        return $this;
    }
1112582
public function enabled($enable = null)
    {
        if (!func_num_args()) {
            return $this->_enabled;
        }
        $this->_enabled = $enable;
        return $this;
    }
695937
public function enable()
    {
        spl_autoload_register([$this, 'autoload'], true, true);
        spl_autoload_register([$this, 'autoloadOptional'], true, false);
        return $this;
    }
556935
public function enable($capability, $enable = true)
    {
        $capability = Horde_String::upper($capability);
        $enabled = $this->isEnabled($capability);

        if ($enable && !$enabled) {
            switch ($capability) {
            case 'QRESYNC':
                /* RFC 7162 [3.2.3] - Enabling QRESYNC also implies enabling
                 * of CONDSTORE. */
                $this->enable('CONDSTORE');
                break;
            }

            $this->_enabled[] = $capability;
            $this->notify();
        } elseif (!$enable && $enabled) {
            $this->_enabled = array_diff($this->_enabled, array($capability));
            $this->notify();
        }
    }
8638
public function setCallback(callable $callback, array $params = [])
    {
        if ($this->hasCallback()) {
            throw new ArchException('Callback already defined');
        }
        $this->callback = $callback;
        $this->callbackParams = $params;
        return $this;
    }
1099700
public void setAutomaticLayout(boolean enable) {
        if (enable) {
            this.setAutomaticLayout(AutomaticLayout.RankDirection.TopBottom, 300, 600, 200, false);
        } else {
            this.automaticLayout = null;
        }
    }
113868
def set_step(self, value, block_events=False):
        
        if block_events: self.block_events()
        self._widget.setSingleStep(value)
        if block_events: self.unblock_events()
388180
public function toggleAutoRedirection($enabled)
    {
        $driver = $this->getSession()->getDriver();
        if ($driver instanceof KernelDriver) {
            /** @var Client $client */
            $client = $driver->getClient();

            if ($enabled === 'enabled') {
                $client->followRedirects(true);
            } else {
                $client->followRedirects(false);

            }
        }
    }
193515
public function setInitializeOption(bool $enabled)
    {
        $this->initialized = $enabled ? (bool)$this->initialized : null;
    }
1348800
public void setBoardEnabled(boolean enable) {
        final NotificationRootView root = mWindow.mRoot;
        root.setBoardEnabled(enable);
        if (enable && mBoard == null) {
            mBoard = root.getBoard();
            mBoard.addStateListener(new BoardStateListener());
        }
    }
973244
public static function enable()
    {
        Builder::macro(self::MACRO_METHOD, function (Fluent $builder, $createdAt = 'createdAt', $updatedAt = 'updatedAt', $type = 'dateTime') {
            $builder->{$type}($createdAt)->timestampable()->onCreate();
            $builder->{$type}($updatedAt)->timestampable()->onUpdate();
        });
    }
577556
public void setViewEnabled(boolean enable) {
        final NotificationRootView root = mWindow.mRoot;
        root.setViewEnabled(enable);
        if (enable && mView == null) {
            mView = root.getView();
            mView.initialize(this);
            mView.addStateListener(new ViewStateListener());
        }
    }
595707
public function setSandboxMode($enable)
    {
        if ($enable instanceof SandBoxMode) {
            $sandbox_mode = $enable;
            $this->sandbox_mode = $sandbox_mode;
            return;
        }
        $this->sandbox_mode = new SandBoxMode($enable);
        return;
    }
68340
public function addStep(Step $step, $priority = null)
    {
        $priority = null === $priority && $step instanceof PriorityStep ? $step->getPriority() : $priority;
        $priority = null === $priority ? 0 : $priority;

        $this->steps->insert($step, $priority);

        return $this;
    }
680384
public function setEnabled(Enabled $enabled)
    {
        $execute = $this->execute;
        $messages = $this->messages;
        /** @var Execute $execute */
        $execute = false === $enabled->value() ? $execute->disableTools() : $execute;
        $messages = false === $enabled->value() ? $messages->disable() : $messages;

        return new self(
            new Undefined(false),
            $enabled,
            $execute,
            $messages
        );
    }
1324181
public function enableHydration($enable = true)
    {
        $this->_dirty();
        $this->_hydrate = (bool)$enable;

        return $this;
    }
624687
public function disableEditingCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableEditingCheck($disable);

        return $this;
    }