Prepares repository to include inactive entries
(entries with the $this->activeColumn set to false)

@param bool $enable
@return $this
439613
public function includeInactive($enable = true)
    {
        $this->includeInactive = (bool) $enable;

        $this->refreshSettingDependentCriteria();

        return $this;
    }
409763
public function debug($enabled = true)
    {
        if ($enabled === true) {
            $this->debug = $enabled;
            if ($this->dsql) {
                $this->dsql->debug($enabled);
            }
        } else {
            parent::debug($enabled);
        }

        return $this;
    }
968909
public function enable($project_id, $enable)
    {
        $enabled = $this->dataRepository->enableProjects($enable, $project_id);

        return $this->success(['enabled' => $enabled]);
    }
386867
public function autoFields($enable = null)
    {
        deprecationWarning(
            'EagerLoader::autoFields() is deprecated. ' .
            'Use enableAutoFields()/isAutoFieldsEnabled() instead.'
        );
        if ($enable !== null) {
            $this->enableAutoFields($enable);
        }

        return $this->isAutoFieldsEnabled();
    }
236913
public function setIncludable(array $includable): Repository
	{
		if ($includable === self::ALLOW_ALL) {
			$this->includable = self::ALLOW_ALL;

			return $this;
		}

		// Reset includable
		$this->includable = [];

		foreach ($includable as $allowed_include) {
			$this->includable[$allowed_include] = true;
		}

		return $this;
	}
695937
public function enable()
    {
        spl_autoload_register([$this, 'autoload'], true, true);
        spl_autoload_register([$this, 'autoloadOptional'], true, false);
        return $this;
    }
701133
public function setDisabled($disabled)
    {
        $this->disabled = (bool) $disabled;

        if ($this->disabled) {
            $this->attributes = $this->attributes->reject(function ($value, $key) {
                return Str::startsWith($key, ['data-']);
            });
        }

        return $this;
    }
246628
public function setPersistent($persistent)
    {
        Argument::i()->test(1, 'bool');

        $this->persistent = 1;

        if($persistent) {
            $this->persistent = 2;
        }

        return $this;
    }
1112582
public function enabled($enable = null)
    {
        if (!func_num_args()) {
            return $this->_enabled;
        }
        $this->_enabled = $enable;
        return $this;
    }
215260
public function setEnabled(bool $enabled = true): bool
    {
        $was = $this->enabled;
        $this->enabled = $enabled;

        return $was;
    }
476943
public function enableNesting($shortNesting = false)
  {
    $this->_disableNesting = false;
    $this->_shortNesting = $shortNesting;
    return $this;
  }
131287
public function disableSubmit(bool $disable = true)
    {
        $this->builder()->getFooter()->disableSubmit($disable);

        return $this;
    }
1021129
public function setActive( $active = null ) {
		$this->active = (bool)$active;
		$this->toggleClasses( [ 'oo-ui-buttonElement-active' ], $this->active );
		return $this;
	}
385352
public function defer($enable)
    {
        $this->deferred = $enable;

        if (!$this->deferred && isset($this->request)) {
            return $this->doSend();
        }
    }
121528
public function setEnabled(Enabled $enabled)
    {
        $randomMode = false === $enabled->value() ? new PhpUnitRandomMode(false) : $this->randomMode;
        $options = false === $enabled->value() ? new PhpUnitOptions(null) : $this->options;
        
        return new self(
            new Undefined(false),
            $enabled,
            $randomMode,
            $options
        );
    }
1084845
public function toggle($enable = null)
    {
        /** @var \yii\db\ActiveRecord $model */
        $model = $this->owner;
        if (($c = $this->enabledAttribute) !== null) {
            $model->$c = $enable === null ? !$model->$c : $enable;
            return $model->save(false, [$c]);
        } elseif (($c = $this->disabledAttribute) !== null) {
            $model->$c = $enable === null ? !$model->$c : !$enable;
            return $model->save(false, [$c]);
        }
        return null;
    }
630964
public function logQueries($enable = null)
    {
        if ($enable !== null) {
            $this->_logQueries = $enable;
        }

        if ($this->_logQueries) {
            return $this->_logQueries;
        }

        return $this->_logQueries = $enable;
    }