Returns true if the hierarchy is disabled for given log level and false
otherwise.
@return boolean
8238
public function isDisabled(\n2n\log4php\LoggerLevel $level) {
		return ($this->threshold->toInt() > $level->toInt());
	}
1145414
function isValidLogLevel(logLevel) {
  const level = cleanLogLevel(logLevel);
  switch (level) {
    case LogLevel.ERROR:
    case LogLevel.WARN:
    case LogLevel.INFO:
    case LogLevel.DEBUG:
    case LogLevel.TRACE:
      return true;
    default:
      return false;
  }
}
976476
public function isHandling($level)
    {
        $record = array(
            'message' => '',
            'context' => array(),
            'level' => $level,
            'level_name' => self::getLevelName($level),
            'channel' => $this->name,
            'datetime' => new \DateTime(),
            'extra' => array(),
        );

        foreach ($this->handlers as $key => $handler) {
            if ($handler->isHandling($record)) {
                return true;
            }
        }

        return false;
    }
1374832
protected function isParentArchived()
    {
        if ($parentID = $this->ParentID) {
            /** @var SiteTree $parentPage */
            $parentPage = Versioned::get_latest_version(self::class, $parentID);
            if (!$parentPage || !$parentPage->isOnDraft()) {
                return true;
            }
        }
        return false;
    }
592710
protected function _isPaginationEnabled()
    {
        if (!isset($this->controller->limits) ||
            !isset($this->controller->limits[$this->action]) ||
            !isset($this->controller->limits[$this->action]['default']) ||
            !isset($this->controller->limits[$this->action]['limits'])
        ) {
            return false;
        }

        return true;
    }
531964
public function getRepliesEnabled()
    {
        // Check reply option
        if (!$this->getOption('nested_comments')) {
            return false;
        }

        // Check if depth is limited
        $maxLevel = $this->getOption('nested_depth');
        $notSpam = ($this->SpamClass() == 'notspam');
        return $notSpam && (!$maxLevel || $this->Depth < $maxLevel);
    }
803371
protected function isLoggable()
    {
        if (Yii::$app instanceof Application && Yii::$app->hasModule('admin') && Yii::$app->has('adminuser')) {
            return true;
        }

        return false;
    }
75405
public function isDisabled()
    {
        if (parent::isDisabled() && 'select' === $this->type) {
            return true;
        }

        foreach ($this->options as $option) {
            if ($option['value'] == $this->value && $option['disabled']) {
                return true;
            }
        }

        return false;
    }
1229493
public function is_locked() {
        if ($this->_locked) {
            return true;
        }

        if ($parent = $this->get_parent_context()) {
            return $parent->is_locked();
        }

        return false;
    }
479590
private function needToLog(string $level): bool
    {
        $logLevels = [LogLevel::EMERGENCY => 0,
                      LogLevel::ALERT     => 1,
                      LogLevel::CRITICAL  => 2,
                      LogLevel::ERROR     => 3,
                      LogLevel::WARNING   => 4,
                      LogLevel::NOTICE    => 5,
                      LogLevel::INFO      => 6,
                      LogLevel::DEBUG     => 7];

        if (isset($logLevels[$this->getApp()->getConfig()->getLogLevel()])) {
            return isset($logLevels[$level]) && $logLevels[$level] <= $logLevels[$this->getApp()->getConfig()->getLogLevel()];
        } else {
            return false;
        }
    }
244193
public function isDisabled()
    {
        if ($page = $this->getCurrentPage(Page::class)) {
            
            if ($this->hasAnchors()) {
                return parent::isDisabled();
            }
            
        }
        
        return true;
    }
953112
public boolean isDropEnabled() {

        if (m_dropEnabled != null) {
            return m_dropEnabled.booleanValue();
        }
        CmsTree<?> tree = getTree();
        if (tree == null) {
            return false;
        }
        return tree.isDropEnabled();
    }
135008
private function updateLevel()
    {
        if (null === $this->output or OutputInterface::VERBOSITY_QUIET === ($verbosity = $this->output->getVerbosity())) {
            return false;
        }

        $this->setLevel(Logger::DEBUG);
        return true;
    }
148583
public function is_locked() {
        // If the setting is locked or the dependent setting should be locked then return true.
        if ($this->setting->get_status() !== base_setting::NOT_LOCKED ||
                $this->evaluate_disabled_condition($this->setting->get_value())) {
            return true;
        }
        // Else the dependent setting is not locked by this setting_dependency.
        return false;
    }
1134737
public boolean isDisabled() {
		if (super.isDisabled()) 
			return true;
		UIComponent ancestor = getParent();
		while (ancestor!=null) {
			if (ancestor instanceof IContentDisabled) {
				if (((IContentDisabled)ancestor).isContentDisabled()) {
					return true;
				}
			}
			ancestor=ancestor.getParent();
		}
		return false;
	}
1153003
public function isEnabled()
    {
        if ($this->enabled === null) {
            $config = $this->app['config'];
            $configEnabled = value($config->get('debugbar.enabled'));

            if ($configEnabled === null) {
                $configEnabled = $config->get('app.debug');
            }

            $this->enabled = $configEnabled && !$this->app->runningInConsole() && !$this->app->environment('testing');
        }

        return $this->enabled;
    }
573273
public function canReport(Throwable $e): bool
    {
        $level = $this->getLogLevel($e);

        // TODO : utiliser la méthode shouldLog():bool
        return $this->logLevels[$level] <= $this->logLevels[$this->logLevelThreshold];
    }