@param string $active
@param string $inactive

@return $this
331904
public function setIconClasses(string $active, string $inactive)
    {
        $this->iconClasses = [$active, $inactive];

        return $this;
    }
1271371
public function setActiveSite(SiteInterface $site = null)
    {
        $this->site = $site;
        $this->app->instance(SiteModel::class, $site);

        return $this;
    }
399105
public function require_active_enrolment($onlyactive = true) {
        if (!empty($this->users_rs)) {
            debugging('Calling require_active_enrolment() has no effect unless you call init() again', DEBUG_DEVELOPER);
        }
        $this->onlyactive  = $onlyactive;
    }
998808
public function translations($active = true)
    {
        if ($active) {
            return $this->hasMany(ContentTranslation::class)->where('is_active', '=', true);
        }
        return $this->hasMany(ContentTranslation::class);
    }
739294
public function setStatus($status)
    {
        if (!in_array($status, array(
            self::STATUS_ACTIVE,
            self::STATUS_INACTIVE,
        ))) {
            throw new \InvalidArgumentException("Invalid status in ".get_class($this).".");
        }

        $this->status = $status;

        return $this;
    }
190283
public function actionDeactivateAll()
    {
        if (isset($_POST['items'])) {
            foreach ($_POST['items'] as $id) {
                if ($model = $this->findModel($id)) {
                    $model->status = ActiveRecord::STATUS_INACTIVE;
                    $model->save(false);
                }
            }
        }
    }
665240
public function activate($index){
		$this->content["menu"]->getItem($index)->setActive(true);
		$this->content[$index]->setActive(true);
		return $this;
	}
203977
protected function setBranchVisible(array $activeBranch)
    {
        $current = array_pop($activeBranch);

        foreach ($this->_subItems as $item) {
            if ($item->isVisible()) {
                if ($item === $current) {
                    $item->set('active', true);
                    $item->setBranchVisible($activeBranch);
                } else {
                    $item->setForChildren('visible', false);
                }
            }
        }

        return $this;
    }
896567
public function getAddons($active = false) {
        if ($active) {
            return array_keys($this->enabled);
        }
        return array_keys($this->addons);
    }
436603
public function setActivatedOn($activated_on) {
        
        $this -> activated_on = $activated_on !== null ? new \DateTime($activated_on) : null;
        return $this;
    }
844923
public function inactive()
    {
        $inactive = $this->getInactiveAttribute();

        if (is_bool($inactive)) {
            return $inactive;
        }

        if ($inactive instanceof \Closure) {
            return call_user_func($inactive);
        }

        return false;
    }
1088789
public function setActive($isActive)
    {
        $this->isActive = (bool) $isActive;
        
        if ($this->parent !== null) {
            $this->parent->setActive($isActive);
        }
    }
510922
public function setEnabled($enabled) {

        $ena = DataFilter::filterBoolean($enabled);

        $this->enabled = $ena;

        return $this;

    }
46338
public function setLazy($lazy)
    {
        $this->changes['lazy'] = true;

        $this->lazy = (bool) $lazy;

        return $this;
    }
511007
public function setActive($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->active !== $v) {
            $this->active = $v;
            $this->modifiedColumns[SmartyFilterTableMap::ACTIVE] = true;
        }


        return $this;
    }
1021129
public function setActive( $active = null ) {
		$this->active = (bool)$active;
		$this->toggleClasses( [ 'oo-ui-buttonElement-active' ], $this->active );
		return $this;
	}
986001
public function setActive($active = true)
    {
        if (is_callable($active)) {
            $this->active = $active($this);

            return $this;
        }

        $this->active = (bool) $active;

        return $this;
    }