public function setParam($var = null, $values = null)
    {
        if (null === $var) {
            $this->_parameters = $values;
        } else {
            $this->_parameters[$var] = $values;
        }

        return $this;
    }
public function setParam($var = null, $values = null)
    {
        if (null === $var) {
            $this->_parameters = $values;
        } else {
            $this->_parameters[$var] = $values;
        }

        return $this;
    }
public function setParam ( $ var = null , $ values = null ) { if ( null === $ var ) { $ this -> _parameters = $ values ; } else { $ this -> _parameters [ $ var ] = $ values ; } return $ this ; }
Sets one or all parameters.

@param string $var    the parameter name to set, if NULL all the parameters array wil be set
@param mixed  $values the parameter value or all the parameters if $var is NULL

@return \BackBee\Site\Layout
Sets one or all parameters .