Включает или отключает проверку

@param string $check  имя проверки
@param bool   $state  новое состояние

@return void

@since 0.2.0
@see Botobor::set() для более подробной информации
496022
public function setCheck($check, $state)
    {
        if (array_key_exists($check, $this->meta->checks))
        {
            $this->meta->checks[$check] = $state;
        }
    }
300718
public function setChecked(bool $checked) : self
    {
        if ($checked) {
            $this->getField()->addProp('checked');
        } else {
            $this->getField()->removeProp('checked');
        }

        return $this;
    }
592282
public function setState(\Haven\PersonaBundle\Entity\State $state = null)
    {
        $this->state = $state;
    
        return $this;
    }
469151
public function setOverwrite($state = false)
	{
		$tmp = $this->overwrite;

		if ($state)
		{
			$this->overwrite = true;
		}
		else
		{
			$this->overwrite = false;
		}

		return $tmp;
	}
434612
public function setCheck($value)
    {
        $check = StringHelper::booleanValue($value);
        $this->check = $check;
        if ($check) {
            $this->flags .= ' --check ';
        } else {
            $this->flags = str_replace(' --check ', '', $this->flags);
        }
    }
1109462
public function clear($check)
    {
        $this->_auth();
        $max = xcache_count(XC_TYPE_VAR);
        for ($i = 0; $i < $max; $i++) {
            xcache_clear_cache(XC_TYPE_VAR, $i);
        }
        $this->_auth(true);

        return true;
    }
380959
protected function check($name, $check = '')
    {
        if (!isset($this->keyMap[$name])) {
            return false;
        }
        return ($this->keyMap[$name]['checksum'] === $this->generateNewChecksum($check));
    }
481466
public function removeCheck($check)
    {
        if (in_array($check, $this->checks)) {
            $this->checks = array_diff($this->checks, [$check]);
        }
    }
1200236
public function register($check, $tags = [])
    {
        $check = ['check' => $check, 'tags' => []];
        if (!empty($tags)) {
            $check['tags'] = $tags;
        }

        $this->registeredChecks[] = $check;
    }
29795
public function setChecked($checked = true)
    {
        $this->clearCache();
        $this->checked = (bool)$checked;
        return $this;
    }
1122264
public function setState($state)
		{
		$r = array_pop($this->states);
		array_push($this->states, $state);
		$this->state = $this->states[count($this->states) - 1];
		return $r;
		}
446330
protected function setState($state)
    {
        $state = intval($state);

        if ($state < 0 || $state > 3) {
            return false;
        }

        $this->state = $state;
        return true;
    }
1266464
function(state) {
            this.setState({
                panels: this.state.panels.map(function(panel) {
                    panel.checked = state.index === panel.index
                    return panel
                })
            })
        }
1313004
public function setState($state)
	{
		if ( $state == $this->getState() ) { return; }

		$this->_values['state'] = (string) $state;
		$this->setModified();
	}
199653
public function addState($state)
    {
        $this->_states[$state] = $state;

        if ($this->_currentState === null) {
            $this->_currentState = $state;
        }
    }
1179894
public void setState(State state) {
    this.state = state;
    setText(state.isPrimary() ? text1 : text2);
  }
542266
public function setState($state=0, $ids=array())
	{
		if (count($ids) <= 0)
		{
			return false;
		}

		$ids = array_map('intval', $ids);

		return $this->update()
			->set(array('state' => $state))
			->whereIn('id', $ids)
			->execute();
	}