src/Hups/Util/PHPTemplate.php
public function setVars($vars, $clear = false)
    {
        if ($clear) {
            $this->vars = $vars;
        } else {
            if (is_array($vars)) $this->vars = array_merge($this->vars, $vars);
        }
        return $this;
    }
public function setVars($vars, $clear = false)
    {
        if ($clear) {
            $this->vars = $vars;
        } else {
            if (is_array($vars)) $this->vars = array_merge($this->vars, $vars);
        }
        return $this;
    }
public function setVars ( $ vars , $ clear = false ) { if ( $ clear ) { $ this -> vars = $ vars ; } else { if ( is_array ( $ vars ) ) $ this -> vars = array_merge ( $ this -> vars , $ vars ) ; } return $ this ; }
Set a bunch of variables at once using an associative array.
@param array $vars  array of vars to set
@param bool  $clear whether to completely overwrite the existing vars
@return Hups\Util\PHPTemplate
Set a bunch of variables at once using an associative array .