rex_fragment::__get PHP Method

__get() public method

Magic getter to reference variables from within the fragment.
public __get ( string $name ) : mixed
$name string The name of the variable to get
return mixed
    public function __get($name)
    {
        if (array_key_exists($name, $this->vars)) {
            return $this->vars[$name];
        }
        trigger_error(sprintf('Undefined variable "%s" in rex_fragment "%s"', $name, $this->filename), E_USER_WARNING);
        return null;
    }