Outputs a slot.

@param string      $name    The slot name
@param bool|string $default The default slot content

@return bool true if the slot is defined or if a default content has been provided, false otherwise
422567
public function output($name, $default = false)
    {
        if (!isset($this->slots[$name])) {
            if (false !== $default) {
                echo $default;

                return true;
            }

            return false;
        }

        echo $this->slots[$name];

        return true;
    }
1324860
public function block($name, $default = null)
    {
        return isset($this->blocks[$name]) ? $this->blocks[$name] : $default;
    }
150245
public static function get($name = null, $default = false)
	{
		if(isset(self::$modifys[$name]))
		{
			return self::$modifys[$name];
		}
		else if(array_key_exists($name,self::$modifys))
		{
			return $default;
		}
		else
		{
			self::init();
			self::save();
			if(null === $name)
			{
				return $_SESSION;
			}
			$names = parseCfgName($name);
			$var = $_SESSION;
			foreach($names as $name)
			{
				if('@' === $name)
				{
					$name = self::$prefix;
				}
				if('' !== $name)
				{
					$var = $var[$name];
				}
			}
			return isset($var) ? $var : $default;
		}
	}
1192844
public static function getBool($name, $default = null)
    {
        if (isset($_GET[$name]) && $_GET[$name] !== '') return self::parseInputToBool($_GET[$name]);
        return (is_null($default) ? null : ((bool)$default));
    }
156169
public function getText(string $name, string $default = '') : string
    {
        $metadata = $this->content->getText($name);

        return $metadata ? $metadata->text : $default;
    }
795354
protected static function getOption($name, $default = null)
    {
        return isset(self::$options[$name]) ? self::$options[$name] : $default;
    }
1215766
public function get_config($name, $default = NULL) {
        $this->load_config();
        return isset($this->config->$name) ? $this->config->$name : $default;
    }
1003668
private function initialise_option($name, $default) {
        $param = optional_param($name, null, PARAM_BOOL);
        if (is_null($param)) {
            return get_user_preferences($name, $default);
        } else {
            set_user_preference($name, $param);
            return $param;
        }
    }
702828
public function getAttribute($name, $default = null)
    {
        if ($this->hasAttribute($name)) {
            return $this->node->getAttribute($name);
        }

        return $default;
    }
500647
public function getSection($name, $default = null)
    {
        return isset($this->getSections()[$name]) ? $this->getSections()[$name] : $default;
    }
1344477
public function getValueByName(string $name, $default = null)
    {
        if (isset($this->values[$name])) {
            return $this->parseType($this->values[$name]);
        }

        return $default;
    }
1181209
public function pull($name, $default = null)
    {
        $result = $this->get($name, false);
        if ($result) {
            $this->delete($name);

            return $result;
        } else {
            return $default;
        }
    }
1179916
public function get(string $name, $default = null)
    {
        return ($this->exists($name)) ? $this->map[$name] : $default;
    }
1141081
public static function server($name, $default = '')
    {
        $name = strtoupper($name);

        return isset($_SERVER[$name]) ? trim($_SERVER[$name]) : $default;
    }
362576
public function get($name, $default = null)
    {
        $name = $this->prefix . $name;
        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : $default;
    }
968766
private function getValue ($name, $default)
	{
		$parts = explode ('.', $name);
		$file = array_shift ($parts);

		$this->loadFile ($file);

		if (! isset ($this->files[$file])) {
			return $default;
		}
		else {
			$out = $this->files[$file];
			foreach ($parts as $part)
			{
				if (!isset ($out[$part]))
				{
					return $default;
				}
				else {
					$out = $out[$part];
				}
			}
		}

		return $out;
	}
8875
static public function getCommon($name = null, $default=null)
    {
        $value = self::get($name, self::$range);
        return $value === null ? $default : $value;
    }