Sets an option value.

This method implements a fluent interface.

@param string $name  An option name
@param mixed  $value The option value

@return $this
355686
public function setOption($name, $value)
    {
        $this->options[$name] = $value;
        $this->compiled = null;

        return $this;
    }
919632
public function setOption($name, $value)
	{
	    switch ($name) {
	        case 'horizontal':
	            $this->options['bars']['horizontal'] = $value;
                break;
	        case 'stackSeries':
	            $this->pluginFiles[] = 'jquery.flot.stack.js';
	            $this->options['series']['stack'] = true;
	            break; 
	        case 'fillColor':
	            $this->options['series']['bars']['fillColor']['colors'] = $value;
	            break;
	        default:
	            parent::setOption($name, $value);
	    }
	    
	    return $this;
	}
775872
public static function set($name, $value = '', $option = null) {
        self::driver()->set($name, $value, $option);
    }
1231068
public function setOption($name, $value)
    {
        if (!is_string($name)) {
            throw new Exception('invalid options name');
        }
        $name = strtolower($name);
        if ($name == 'result_store') {
            $this->options['result_store'] = $value;
            $this->setResultStore($value);
        } elseif ($name == 'broker') {
            $this->options['broker'] = $value;
            $this->setBroker($value);
        }
        return $this;
    }
80262
public function set( string $name, $value )
	{
		if( $name === "default" )
		{
			if( is_scalar($value) )
				$this->default = $value;
		}
		else if( $name !== "name" && isset($this->{$name}) && gettype($this->{$name}) === gettype($value) )
		{
			$this->{$name} = $value;
		}
		return $this;
	}
438574
public function setOption( string $name, $value )
   {

      $this->_options[ $name ] = $value;

      unset( $this->_options[ 'data' ] );

      return $this;

   }
717555
public function setOption(string $name, string $value): void
    {
        $this->options[$name] = $value;
    }
895628
public function set($name, $value = null)
    {
        if ($this->has($name) && $this->get($name) !== $value)
        {
            $this->offsetSet($name, $value);

            //Reset the model
            $this->__model->reset(array($name));
        }

        return $this;
    }
693071
public function setAttribute( $name, $value ) {
        if( strtolower( $name ) == 'value' ) {
            $this->setSelectedOption( $value );
        } else {
            parent::setAttribute( $name, $value );
        }
    }
1047118
public function setOption($name, $value = null)
    {
        if (is_array($name)) {
            $this->_option = $name;
        } elseif (is_null($value)) {
            unset($this->_option[$name]);
        } else {
            $this->_option[$name] = $value;
        }
    }
566365
public function setParam($name, $value=null) {
		if(is_array($name)) {
			foreach($name as $k=>$v)
				$this->setParam($k, $v);
			return $this;
		}
		$this->params[$name] = $value;
		return $this;
	}
106956
public function setOption($name, $value) {
    if (!array_key_exists($name, $this->options)) {
      throw new InvalidArgumentException(sprintf('Undefined option: "%s"', $name));
    }

    $this->options[$name] = $value;
    $this->getHttpClient()->setOption($name, $value);
  }
527350
final public function set($name, $value)
    {
        $method = 'set'.ucfirst($name);
        if(!method_exists($this, $method) ) {
            parent::set($name, $value);
        } else {
            $this->$method($value);
        }

        return $this;
    }
210954
public function set($name, $value) {
		\Asgard\Common\ArrayUtils::set($this->parameters, $name, $value);
		return $this;
	}
474067
public function setHtmlEngineOptions($name, $value = '')
    {
        if (is_array($name)) {
            $this->options = array_merge($this->options, $name);
        } else {
            $this->options[$name] = $value;
        }
        return $this;
    }
254690
public function setOption($option, $value)
    {
        $option                 = strtolower($option);
        $this->options[$option] = $value;
        return $this;
    }
853750
public function setOption( $name, $value )
	{
		$this->jsWriter->setSeriesOption( $this->getTitle(), $name, $value );

		return $this;
	}