Allows to mark each tab's level in the tree before rendering.

@param int $level
197281
protected function set_level($level) {
        $this->level = $level;
        foreach ($this->subtree as $tab) {
            $tab->set_level($level + 1);
        }
    }
1232190
public function shutdown($level)
    {
        if (!$this->encapsulated) {
            return;
        }

        $headers = $this->cleanHeaders();

        foreach ($headers as $name => $value) {
            $this->response->headers->set($name, $value);
        }

        $content = ob_get_contents();

        $this->response->setContent($content);

        $this->restoreBufferLevel($level);

        $this->response->send();
    }
978146
public function setNestingLevel($level = null)
	{
		if (func_num_args() and is_numeric($level) and $level > 0)
		{
			$this->maxNestingLevel = $level;
		}

		return $this->maxNestingLevel;
	}
736518
protected function _msg( $msg, $level = 0 )
	{
		$pre = '';
		for( $i = 0; $i < 2*$level; $i++ ) { $pre .= ' '; }

		echo str_pad( $pre . $msg, 70 );
	}
1036352
protected function _renderChildren($item, $level)
    {
        if (!$this->_hasChildren($item)) {
            return '';
        }

        $subnavItems = $this->renderNested($item['children'], $level);
        if ($subnavItems === '') {
            return '';
        }

        $templater = $this->templater();

        $htmlAttributes = [
            'class' => $this->_buildSubnavClasses($item, $level)
        ];

        return $this->formatTemplate('subnav', [
            'attrs' => $templater->formatAttributes($htmlAttributes),
            'items' => $subnavItems
        ]);
    }
283621
final public function setLevel($level)
    {
        if (!in_array(strtolower($level), $this->getAllowedLevel())) {
            throw new InvalidArgumentException();
        }

        $this->level = $level;

        return $this;
    }
606653
public function Level($level)
    {
        $parent = $this;
        $stack = array($parent);
        while ($parent = $parent->Parent) {
            array_unshift($stack, $parent);
        }

        return isset($stack[$level-1]) ? $stack[$level-1] : null;
    }
53407
public function setHeadingDisplayLevel(int $level) : Bootstrap4Jumbotron
    {
        if (in_array($level, $this->supported_display_levels) === true) {
            $this->display_level = $level;
        }

        return $this;
    }
728780
protected function log($message, $level = Logger::INFO)
    {
        $this->logger->log($message, $level);
    }
590785
public function setProfilingLevel($level)
    {
        $result = $this->command(['profile' => $level]);

        return ($result['ok'] && isset($result['was'])) ? $result['was'] : 0;
    }
268274
public function setLevel($level)
    {
        if (!is_int($level)) {
            $plop = \Plop\Plop::getInstance();
            $level = $plop->getLevelValue($level);
        }
        $this->level = $level;
        return $this;
    }
1281143
private function setLevel($level)
    {
        $availableLevels = array_flip(Logger::getLevels());

        if (!isset($availableLevels[$level])) {
            throw new InvalidLoggerLevelException(
                sprintf(
                    'The level: "%d" does not exist. The available levels are: "%s"',
                    $level,
                    implode(', ', array_keys($availableLevels))
                ),
                400
            );
        }
        $this->level = $level;

        return $this;
    }
1015371
public function withLevel($level)
    {
        if (!isset(self::$levels[$level])) {
            throw new InvalidArgumentException('Unsupported log level "' . $level . '"');
        }

        $this->level = $level;
    }
363143
public function checkLevel($level)
    {
        if (static::$levels === null) {
            // Psr\Log does not provide Enum, so we need to load levels from LogLevel constants
            $reflection = new \ReflectionClass(LogLevel::class);
            static::$levels = $reflection->getConstants();
        }

        if (!in_array($level, static::$levels)) {
            $levels = implode(', ', static::$levels);
            throw new InvalidArgumentException("Level must be one of [$levels].");
        }
    }
985506
public function setLevel($level)
    {
        if (!isset(self::$levels[$level])) {
            throw new \InvalidArgumentException('Invalid log level');
        }
        $this->level = $level;
    }
633752
public function setLogLevel($level = 0)
    {
        if (is_string($level)) {
            $level = defined('Horde_Log::' . $level)
                ? constant('Horde_Log::' . $level)
                : 0;
        }

        $this->_logLevel = $level;
    }
915120
public static function setFatalErrorLogLevel($level)
    {
        if (is_array($level)) {
            self::$fatalErrorLogLevel = $level;
        } else {
            self::$fatalErrorLogLevel[] = $level;
        }
    }