Sets the option $name given the $value.
@param string $name The name of the option.
@param string $value The value of the option.
191553
public function setOption( $name, $value ) {
        if( key_exists( $name, $this->options) )
            $this->options[$name] = $value;
        else
            throw new Exception\OptionDoesNotExist( $name );
    }
1236883
public function set_config($name, $value) {
        $pluginname = $this->get_name();
        $this->load_config();
        if ($value === NULL) {
            unset($this->config->$name);
        } else {
            $this->config->$name = $value;
        }
        set_config($name, $value, "enrol_$pluginname");
    }
234756
public function setOption($name, $value)
    {
        $this->validate($name, $value);
        $this->options[$name] = $value;

        return $this;
    }
1055129
private function update_option( $name, $value ) {
            $this->_data[ $name ] = $value;

            $this->_storage->set_option( $this->_option_name, $this->_data, true );
        }
1166110
public function addOptionalHeader($name, $value)
    {
        Validate::isString($name, 'name');
        Validate::isString($value, 'value');

        if (!empty($value)) {
            $this->_headers[$name] = $value;
        }
    }
658121
public function setProperty(string $name, $value)
    {
        if (isset($this->properties[$name])) {
            $this->properties[$name] = $value;
            return true;
        }

        return false;
    }
230494
public function setOption($name, $value)
	{
		$this->assertOptionName($name);

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

		return $this;
	}
438574
public function setOption( string $name, $value )
   {

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

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

      return $this;

   }
543335
public function setOption($name, $value)
    {
        if (!array_key_exists($name, $this->options)) {
            throw new InvalidArgumentException(sprintf('Undefined option called: "%s"', $name));
        }

        if ('api_version' == $name && !in_array($value, $this->getSupportedApiVersions())) {
            throw new InvalidArgumentException(sprintf('Invalid API version ("%s"), valid are: %s', $name, implode(', ', $supportedApiVersions)));
        }

        $this->options[$name] = $value;
    }
468194
protected function setInternalValue($name, $value)
    {
        if (array_key_exists($name, $this->internal_properties)) {
            $this->internal_properties[$name] = $value;
        }
    }
911387
public function set($name, $value)
    {
        if (is_array($value)) {
            $this->__options[$name] = $this->getInstance()->merge($value);
        } else {
            $this->__options[$name] = $value;
        }

        return $this;
    }
603757
public function set($name, $value = null)
    {
        if (is_array($name)) {
            foreach ($name as $k => $v) {
                $this->set($k, $v);
            }
        } else {
            if (is_callable($value)) {
                $this->dynamic[$name] = $value;
            } else {
                $this->properties[$name] = $value;
            }
        }
    }
514814
public function set(string $name, string $value): void
    {
        $this->parameters[$name] = $value;
    }
433457
protected function addClassOption($name, $value)
    {
        $value = trim($value);
        if (substr($value, 0, 1) == '.' || substr($value, 0, 1) == '#') {
            $value = substr($value, 1);
        }
        if ($value != '') {
            $this->addOption('class', $name, $value);
        }
    }
1109767
public function setError($name, $value)
    {
        $name = (string)$name;
        $this->errors[$name] = $value;
    }
129581
public function set($name, $value)
    {
        self::preSet($name, $value);

        $this->_container[$name] = $value;
    }
342494
public function setAttribute(string $name, $value): void
	{
		Arr::set($this->attributes, $name, $value);
	}