rex_fragment::getVar PHP Method

getVar() public method

Returns the value of the given variable $name.
public getVar ( string $name, string $default = null )
$name string Variable name
$default string Default value
    public function getVar($name, $default = null)
    {
        if (isset($this->vars[$name])) {
            return $this->vars[$name];
        }
        return $default;
    }