public function setOptions(array $options, $merge = true)
    {
        if ($merge) {
            $options = array_merge($this->_options, $options);
        }
        $this->_options = $options;

        return $this;
    }
public function setOptions(array $options, $merge = true)
    {
        if ($merge) {
            $options = array_merge($this->_options, $options);
        }
        $this->_options = $options;

        return $this;
    }
public function setOptions ( array $ options , $ merge = true ) { if ( $ merge ) { $ options = array_merge ( $ this -> _options , $ options ) ; } $ this -> _options = $ options ; return $ this ; }
Sets additional options for the view.

This lets you provide custom constructor arguments to application/plugin view classes.

@param array $options An array of options.
@param bool $merge Whether or not to merge existing data with the new data.
@return $this
Sets additional options for the view .