Set an option on a sub element of the data array
@param  {String}       name of the option
@param  {String}       value for the option
19135
public static function setOptionLink($optionName,$optionValue) {

		if (!isset(self::$store["link"])) {
			self::$store["link"] = array();
		}

		self::$store["link"][$optionName] = $optionValue;

	}
1256114
function set_attribute($name, $value){
		switch($name){
			case "id": 
				$this->set_id($value);
				break;
			case "text": 
				$this->data[$this->config->text[0]["name"]]=$value;
				break;
			case "checked": 
				$this->set_check_state($value);
				break;
			case "im0": 
				$this->im0=$value;
				break;
			case "im1": 
				$this->im1=$value;
				break;
			case "im2": 
				$this->im2=$value;
				break;
			case "child": 
				$this->set_kids($value);
				break;
			default:
				$this->attrs[$name]=$value;
		}
	}
716024
public function set($name, $value)
    {
        $name = $this->normalizeName($name);
        $newValues = is_array($value) ? $value : [$value];
        $this->data[$name] = $newValues;
    }
180477
public void setValueFor(Object value, String name) {
        getMapHelper().setValueForIn(value, name, getCurrentValues());
    }
636008
public function setOption($name, $value)
    {
        if (is_string($name)) {
            if (isset($this->options[$name])) {
                switch ($name) {
                    case self::OPTION_STYLE_TAG:
                        if (is_int($value)) {
                            if (!in_array($value, [
                                self::OPTION_STYLE_TAG_BODY,
                                self::OPTION_STYLE_TAG_HEAD,
                                self::OPTION_STYLE_TAG_REMOVE,
                            ])) {
                                throw new \InvalidArgumentException("Invalid value '$value' for option '$name'.");
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_HTML_CLASSES:
                        if (is_int($value)) {
                            if (!in_array($value, [
                                self::OPTION_HTML_CLASSES_REMOVE,
                                self::OPTION_HTML_CLASSES_KEEP,
                            ])) {
                                throw new \InvalidArgumentException("Invalid value '$value' for option '$name'.");
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_HTML_COMMENTS:
                        if (is_int($value)) {
                            if (!in_array($value, [
                                self::OPTION_HTML_COMMENTS_REMOVE,
                                self::OPTION_HTML_COMMENTS_KEEP,
                            ])) {
                                throw new \InvalidArgumentException("Invalid value '$value' for option '$name'.");
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_TEXT_LINE_WIDTH:
                        if (is_int($value)) {
                            if ($value <= 0) {
                                throw new \LengthException(
                                    "Value '" . gettype($value) . "' for option '$name' is to small."
                                );
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_CSS_WRITER_CLASS:
                        if (is_string($value)) {
                            if (is_subclass_of($value, '\Crossjoin\Css\Writer\WriterAbstract', true) === false) {
                                throw new \InvalidArgumentException(
                                    "Invalid value '$value' for option '$name'. " .
                                    "The given class has to be a subclass of \\Crossjoin\\Css\\Writer\\WriterAbstract."
                                );
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                }
                $this->options[$name] = $value;
            } else {
                throw new \InvalidArgumentException("An option with the name '$name' doesn't exist.");
            }
        } else {
            throw new \InvalidArgumentException("Invalid type '" . gettype($name) . "' for argument 'name'.");
        }
    }
1055129
private function update_option( $name, $value ) {
            $this->_data[ $name ] = $value;

            $this->_storage->set_option( $this->_option_name, $this->_data, true );
        }
87118
public void setValue (String name, String value)
    {
        String oldValue = getValue(name, (String)null);
        _prefs.put(name, value);
        _propsup.firePropertyChange(name, oldValue, value);
    }
1249097
public function set(string $name, $value)
    {
        $this->_data[$name] = $value;

        if(!is_object($value)) {
            $this->_changed[$name] = $value;
        }
    }
443770
public void setIfUnset(String name, String value) {
        if (get(name) == null) {
            set(name, value);
        }
    }
957374
public final void setParameter(String name, Object value) {
        if (isNative()) {
            bindParameters.add(new BindParameter(name, value));
        } else {
            setParameterValue(":" + name, value);
        }

        parametersMap.put(":" + name, value);
    }
1212356
function(name, value) {
      var lcname = name.toLowerCase();
      if (typeof value === "string" &&
          lcname in this._designSet.param &&
          'multiValue' in this._designSet.param[lcname]) {
          value = [value];
      }
      this.jCal[PROP_INDEX][name] = value;
    }
1067639
function setOption(objA, objB, nameB, targetObj) {
  let nameA = nameB.split('-');
  if (nameA.length > 1) {
    nameA[1] = nameA[1].charAt(0).toUpperCase() + nameA[1].substr(1);
    nameA = nameA.join('');
    targetObj[nameA] = objA[nameA] || objA[nameB] || objB[nameA] || objB[nameB];
  } else {
    targetObj[nameB] = objA[nameB] || objB[nameB];
  }
}
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;
	}
546831
function set(name, value) {
    validateArgumentsLength(arguments.length, 1);
    var state = getInternalParamsState(this);
    var entries = state.entries;
    var found = false;
    var key = name + '';
    var val = value + '';
    var i = 0;
    var entry;
    for (; i < entries.length; i++) {
      entry = entries[i];
      if (entry.key === key) {
        if (found) entries.splice(i--, 1);
        else {
          found = true;
          entry.value = val;
        }
      }
    }
    if (!found) entries.push({ key: key, value: val });
    if (state.updateURL) state.updateURL();
  }
190282
public Options param(String name, String value) {
		options.put(name, value);
		return this;
	}
1139881
function(name, value) {
			if (arguments.length == 2) {
				if (value === null) {
					// remove attribute
					var vals = this._attributes.filter(function(attr) {
						return attr.name === name;
					});

					var that = this;
					vals.forEach(function(attr) {
						var ix = that._attributes.indexOf(attr);
						if (~ix) {
							that._attributes.splice(ix, 1);
						}
					});

					return;
				}

				// modify attribute
				var attrNames = this._attributes.map(function(attr) {
					return attr.name;
				});
				var ix = attrNames.indexOf(name.toLowerCase());
				if (~ix) {
					this._attributes[ix].value = value;
				} else {
					this._attributes.push({
						name: name,
						value: value
					});
				}
			}
			
			return (utils.find(this.attributeList(), function(attr) {
				return attr.name == name;
			}) || {}).value;
		}
1213288
function(name, value) {
    var header = { raw: value };

    name = Utils.headerize(name);

    if(this.headers[name]) {
      this.headers[name].push(header);
    } else {
      this.headers[name] = [header];
    }
  }