Set plugin initial options

@param [Object] options

@return void
509607
function ( options ) {
					var defaults = {
						excludeFields: [],
						customKeySuffix: "",
						locationBased: false,
						timeout: 0,
						autoRelease: true,
						onBeforeSave: function() {},
						onSave: function() {},
						onBeforeRestore: function() {},
						onRestore: function() {},
						onRelease: function() {}
					};
					this.options = this.options || $.extend( defaults, options );
					this.browserStorage = browserStorage;
				}
279055
public function setOptions($options)
    {
        $this->package->setParsedOptions($options);
        $this->inputCollector->setOptions($options);
    }
1061667
function init(opts) {
    opts = opts || {};

    // include pancakes instance into options that we pass to plugins
    opts.pluginOptions = opts.pluginOptions || {};
    opts.pluginOptions.pancakes = exports;

    injector = new DependencyInjector(opts);
    var ClientPlugin = opts.clientPlugin;
    var ServerPlugin = opts.serverPlugin;

    if (ClientPlugin) { clientPlugin = new ClientPlugin(opts); }
    if (ServerPlugin) { serverPlugin = new ServerPlugin(opts); }

    apiRouteHandler.init({ injector: injector });
    webRouteHandler.init({ injector: injector, clientPlugin: clientPlugin, rootDir: opts.rootDir });
}
472708
public function setOptions(array $options)
    {
        foreach ($options as $k => $v) {
            $this->setOption($k, $v);
        }
    }
92734
function setOptions(newOptions) {
                    _currentOptions = extendDeep({}, _currentOptions, _pluginsOptions._validate(newOptions, _pluginsOptions._template, true));
                    _currentPreparedOptions = extendDeep({}, _currentPreparedOptions, _pluginsOptions._validate(newOptions, _pluginsOptions._template, false, true));
                }
607899
protected function init(array $options = array())
    {
        foreach ($options as $key => $value) {
            if (property_exists($this, $key)) {
                $this->{$key} = $value;
            }
        }
    }
1321418
def _set_initial(self, initial):
        
        super(Select, self)._set_initial(initial)
        if not self._value and self.options:
            self.value = self.options[0]
481055
function(options) {
    if (typeof options != "object" || options.length) {
      if (this.options.debug) {
        throw (options + ' options has to be an object');
      } else {
        return;
      }
    }

    // Set options
    _.defaults(this.options, options);
  }
1081643
protected function _initOptions()
    {
        $options = [];

        if ($this->preset) {
            $options = CKEditorPresets::getPresets($this->preset);
        }

        $this->clientOptions = ArrayHelper::merge((array) $options, $this->clientOptions);
    }
844766
protected function initialize()
    {
        parent::initialize();

        // unless already configured, set default options to include exceptions
        $options = $this->defaults->getOptions() ?: [];

        foreach ($this->soapOptionDefaults as $option => $value) {

            if ( ! array_key_exists($option, $options)) {

                $options[ $option ] = $value;
            }
        }

        $this->defaults->setOptions($options);
    }
722229
public function setOptions($options) {
		$this->renderer->getElement()->setOptions($options);
		$this->renderer->getHtmlElement()->setOptions($options);
	}
826548
public function setOptions($options){
		$options = array_intersect_key($options,$this->defaultOptions);
		$this->options = array_merge($this->defaultOptions, $this->options, $options);
	}
401485
public function init()
    {
        // If strings are set in plugin settings, disable locale loading.
        if (isset($this->settings['strings'])) {
            $this->locale = false;
            $this->short = false;
        }

        // Add locale js to stack.
        if ($this->locale || $this->short) {

            //Sanitize language.
            $language = str_replace('_', '-', strtolower(Yii::$app->language));

            if (($this->short || strpos($language, 'en') !== 0) && !$this->setLocaleScript($language)) {
                // Try short version.
                if ($language = substr($language, 0, strpos($language, '-'))) {
                    $this->setLocaleScript($language);
                }
            }
        }

        parent::init();
    }
712954
public static function init($options = array())
    {

        $defaults = array(
            'mode'=>'default'
        );

        $options = array_merge($defaults, $options);

        self::$prob_start = self::loadModel(dirname(dirname(__FILE__)).'/model/prob_start.json');
        self::$prob_trans = self::loadModel(dirname(dirname(__FILE__)).'/model/prob_trans.json');
        self::$prob_emit = self::loadModel(dirname(dirname(__FILE__)).'/model/prob_emit.json');

    }
1010302
public static function init($options) {
		self::$debug = !empty($options['debug']) ? true : false;
		if (self::$debug) {
			self::$email = !empty($options['email']) ? $options['email'] : null;
			self::$toolbar = !empty($options['toolbar']) ? true : false;
			self::benchmark('application start');
		}
	}
470043
public function setOptions($options)
    {
        if (!$options instanceof ModuleOptions) {
            $options = new ModuleOptions($options);
        }

        $this->options = $options;
        return $this;
    }
1131240
public function setOptions(array $options = []): void
    {
        $this->options = $this->shortcuts = [];
        $this->addOptions($options);
    }