src/DebugBar/JavascriptRenderer.php
public function setOptions(array $options)
    {
        if (array_key_exists('base_path', $options)) {
            $this->setBasePath($options['base_path']);
        }
        if (array_key_exists('base_url', $options)) {
            $this->setBaseUrl($options['base_url']);
        }
        if (array_key_exists('include_vendors', $options)) {
            $this->setIncludeVendors($options['include_vendors']);
        }
        if (array_key_exists('javascript_class', $options)) {
            $this->setJavascriptClass($options['javascript_class']);
        }
        if (array_key_exists('variable_name', $options)) {
            $this->setVariableName($options['variable_name']);
        }
        if (array_key_exists('initialization', $options)) {
            $this->setInitialization($options['initialization']);
        }
        if (array_key_exists('enable_jquery_noconflict', $options)) {
            $this->setEnableJqueryNoConflict($options['enable_jquery_noconflict']);
        }
        if (array_key_exists('use_requirejs', $options)) {
            $this->setUseRequireJs($options['use_requirejs']);
        }
        if (array_key_exists('controls', $options)) {
            foreach ($options['controls'] as $name => $control) {
                $this->addControl($name, $control);
            }
        }
        if (array_key_exists('disable_controls', $options)) {
            foreach ((array) $options['disable_controls'] as $name) {
                $this->disableControl($name);
            }
        }
        if (array_key_exists('ignore_collectors', $options)) {
            foreach ((array) $options['ignore_collectors'] as $name) {
                $this->ignoreCollector($name);
            }
        }
        if (array_key_exists('ajax_handler_classname', $options)) {
            $this->setAjaxHandlerClass($options['ajax_handler_classname']);
        }
        if (array_key_exists('ajax_handler_bind_to_jquery', $options)) {
            $this->setBindAjaxHandlerToJquery($options['ajax_handler_bind_to_jquery']);
        }
        if (array_key_exists('ajax_handler_auto_show', $options)) {
            $this->setAjaxHandlerAutoShow($options['ajax_handler_auto_show']);
        }
        if (array_key_exists('open_handler_classname', $options)) {
            $this->setOpenHandlerClass($options['open_handler_classname']);
        }
        if (array_key_exists('open_handler_url', $options)) {
            $this->setOpenHandlerUrl($options['open_handler_url']);
        }
    }
public function setOptions(array $options)
    {
        if (array_key_exists('base_path', $options)) {
            $this->setBasePath($options['base_path']);
        }
        if (array_key_exists('base_url', $options)) {
            $this->setBaseUrl($options['base_url']);
        }
        if (array_key_exists('include_vendors', $options)) {
            $this->setIncludeVendors($options['include_vendors']);
        }
        if (array_key_exists('javascript_class', $options)) {
            $this->setJavascriptClass($options['javascript_class']);
        }
        if (array_key_exists('variable_name', $options)) {
            $this->setVariableName($options['variable_name']);
        }
        if (array_key_exists('initialization', $options)) {
            $this->setInitialization($options['initialization']);
        }
        if (array_key_exists('enable_jquery_noconflict', $options)) {
            $this->setEnableJqueryNoConflict($options['enable_jquery_noconflict']);
        }
        if (array_key_exists('use_requirejs', $options)) {
            $this->setUseRequireJs($options['use_requirejs']);
        }
        if (array_key_exists('controls', $options)) {
            foreach ($options['controls'] as $name => $control) {
                $this->addControl($name, $control);
            }
        }
        if (array_key_exists('disable_controls', $options)) {
            foreach ((array) $options['disable_controls'] as $name) {
                $this->disableControl($name);
            }
        }
        if (array_key_exists('ignore_collectors', $options)) {
            foreach ((array) $options['ignore_collectors'] as $name) {
                $this->ignoreCollector($name);
            }
        }
        if (array_key_exists('ajax_handler_classname', $options)) {
            $this->setAjaxHandlerClass($options['ajax_handler_classname']);
        }
        if (array_key_exists('ajax_handler_bind_to_jquery', $options)) {
            $this->setBindAjaxHandlerToJquery($options['ajax_handler_bind_to_jquery']);
        }
        if (array_key_exists('ajax_handler_auto_show', $options)) {
            $this->setAjaxHandlerAutoShow($options['ajax_handler_auto_show']);
        }
        if (array_key_exists('open_handler_classname', $options)) {
            $this->setOpenHandlerClass($options['open_handler_classname']);
        }
        if (array_key_exists('open_handler_url', $options)) {
            $this->setOpenHandlerUrl($options['open_handler_url']);
        }
    }
public function setOptions ( array $ options ) { if ( array_key_exists ( 'base_path' , $ options ) ) { $ this -> setBasePath ( $ options [ 'base_path' ] ) ; } if ( array_key_exists ( 'base_url' , $ options ) ) { $ this -> setBaseUrl ( $ options [ 'base_url' ] ) ; } if ( array_key_exists ( 'include_vendors' , $ options ) ) { $ this -> setIncludeVendors ( $ options [ 'include_vendors' ] ) ; } if ( array_key_exists ( 'javascript_class' , $ options ) ) { $ this -> setJavascriptClass ( $ options [ 'javascript_class' ] ) ; } if ( array_key_exists ( 'variable_name' , $ options ) ) { $ this -> setVariableName ( $ options [ 'variable_name' ] ) ; } if ( array_key_exists ( 'initialization' , $ options ) ) { $ this -> setInitialization ( $ options [ 'initialization' ] ) ; } if ( array_key_exists ( 'enable_jquery_noconflict' , $ options ) ) { $ this -> setEnableJqueryNoConflict ( $ options [ 'enable_jquery_noconflict' ] ) ; } if ( array_key_exists ( 'use_requirejs' , $ options ) ) { $ this -> setUseRequireJs ( $ options [ 'use_requirejs' ] ) ; } if ( array_key_exists ( 'controls' , $ options ) ) { foreach ( $ options [ 'controls' ] as $ name => $ control ) { $ this -> addControl ( $ name , $ control ) ; } } if ( array_key_exists ( 'disable_controls' , $ options ) ) { foreach ( ( array ) $ options [ 'disable_controls' ] as $ name ) { $ this -> disableControl ( $ name ) ; } } if ( array_key_exists ( 'ignore_collectors' , $ options ) ) { foreach ( ( array ) $ options [ 'ignore_collectors' ] as $ name ) { $ this -> ignoreCollector ( $ name ) ; } } if ( array_key_exists ( 'ajax_handler_classname' , $ options ) ) { $ this -> setAjaxHandlerClass ( $ options [ 'ajax_handler_classname' ] ) ; } if ( array_key_exists ( 'ajax_handler_bind_to_jquery' , $ options ) ) { $ this -> setBindAjaxHandlerToJquery ( $ options [ 'ajax_handler_bind_to_jquery' ] ) ; } if ( array_key_exists ( 'ajax_handler_auto_show' , $ options ) ) { $ this -> setAjaxHandlerAutoShow ( $ options [ 'ajax_handler_auto_show' ] ) ; } if ( array_key_exists ( 'open_handler_classname' , $ options ) ) { $ this -> setOpenHandlerClass ( $ options [ 'open_handler_classname' ] ) ; } if ( array_key_exists ( 'open_handler_url' , $ options ) ) { $ this -> setOpenHandlerUrl ( $ options [ 'open_handler_url' ] ) ; } }
Sets options from an array

Options:
- base_path
- base_url
- include_vendors
- javascript_class
- variable_name
- initialization
- enable_jquery_noconflict
- controls
- disable_controls
- ignore_collectors
- ajax_handler_classname
- ajax_handler_bind_to_jquery
- ajax_handler_auto_show
- open_handler_classname
- open_handler_url

@param array $options [description]
Sets options from an array