(non-PHPdoc)
@see Symfony\Component\Form.AbstractType::setDefaultOptions()
14789
public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $defaultConfigs = array();
        
        $resolver->setDefaults(array(
            'translation_domain' => 'ThraceFormBundle',
            'by_reference' => false,
            'configs' => $defaultConfigs,
        ));
        
        $resolver->setNormalizers(array(
            'configs' => function (Options $options, $value) use ($defaultConfigs){
                $configs = array_replace_recursive($defaultConfigs, $value);
                return $configs;
            }
        ));
          
        $resolver->setRequired(array('reference_class', 'inversed_class', 'inversed_property'));
    }
7048
protected function _setDefaultOptions($options)
    {
        if (!is_array($options)) {
            Zend_Cache::throwException('default_options must be an array !');
        }
        foreach ($options as $key=>$value) {
            if (!is_string($key)) {
                Zend_Cache::throwException("invalid option [$key] !");
            }
            $key = strtolower($key);
            if (isset($this->_specificOptions['default_options'][$key])) {
                $this->_specificOptions['default_options'][$key] = $value;
            }
        }
    }
71861
protected function setDefaults()
    {
        if (!isset($this->contentOptions['category']) 
                || (isset($this->contentOptions['category']) 
                        && empty($this->contentOptions['category']))) {
            $this->contentOptions['category'] = 'app';
        }
        if (!isset($this->contentOptions['mainParams'])) {
            $this->contentOptions['mainParams'] = [];
        }
        if (!isset($this->contentOptions['buttonParams'])) {
            $this->contentOptions['buttonParams'] = [];
        }
        if (!isset($this->contentOptions['language'])) {
            $this->contentOptions['language'] = null;
        }
        if (!isset($this->contentOptions['mainMessage'])) {
            $this->contentOptions['mainMessage'] = 'We use cookies on our websites to help us offer you the best online experience. By continuing to use our website, you are agreeing to our use of cookies. Alternatively, you can manage them in your browser settings.';
        }
        if (!isset($this->contentOptions['buttonMessage'])) {
            $this->contentOptions['buttonMessage'] = 'I understand';
        }
        if (!isset($this->cookieOptions['path'])) {
            $this->cookieOptions['path'] = '/';
        }
        if (!isset($this->cookieOptions['expires'])) {
            $this->cookieOptions['expires'] = 30;
        }
        if (!isset($this->cookieOptions['secure'])) {
            $this->cookieOptions['secure'] = false;
        }
        if (!isset($this->classOptions['classOuter'])) {
            $this->classOptions['classOuter'] = 'CookieMonsterBox';
        }
        if (!isset($this->classOptions['classInner'])) {
            $this->classOptions['classInner'] = '';
        }
        if (!isset($this->classOptions['classButton'])) {
            $this->classOptions['classButton'] = 'CookieMonsterOk';
        }
    }
24768
private function setToDefault():void
    {
        $this->session = null;
        $this->id = null;
        $this->name = null;
    }
698229
protected function setDefaultOptions(array $options=[])
    {
        $this->text['relation_name_text'] = $this->command->paintString('relation name', 'brown');

        if (! isset($options['name'])) {
            $refModel = new ReflectionClass($this->model);
            $name = $this->getRelationName(strtolower($refModel->getShortName()));
            $name = $this->command->ask("What {$this->text['relation_name_text']} do you use?", $name);
        } else {
            $name = $options['name'];
        }
        
        $this->defaultOptions = [
            'name' => $name,
            'pivot_table' => Str::plural($name),
            'foreign_key' => $name.'_id',
            'related_key' => $this->model->getForeignKey()
        ];
    }
1016319
public function setDefault($default = null)
    {
        if (self::VALUE_NONE === (self::VALUE_NONE & $this->mode) && null !== $default) {
            throw new LogicException('Cannot set a default value when using InputOption::VALUE_NONE mode.');
        }

        if ($this->isArray()) {
            if (null === $default) {
                $default = array();
            } elseif (!is_array($default)) {
                throw new LogicException('A default value for an array option must be an array.');
            }
        }

        $this->default = $this->acceptValue() ? $default : false;
    }
898308
public void setToDefaults() {
		styleName = "";
		styleNr = 0;
		alignment = Element.ALIGN_LEFT;
		justificationPercentage = 0;
		firstLineIndent = 0;
		leftIndent = 0;
		rightIndent = 0;
		adustRightIndent = 0;
		mirrorIndent = 0;
		overrideWidowControl = -1;
		AutoSpaceBetweenDBCEnglish = 0;
		AutoSpaceBetweenDBCNumbers = 0;
		noCharacterWrapping = 0;
		noWordWrapping = 0;
		noOverflowPeriodComma = 0;
		
	}
438131
protected function setDefaultClasses(array $options = [])
    {
        $defaults = parent::setDefaultClasses($options);
        $choice_type = $this->determineChoiceField();

        $wrapper_class = $this->formHelper->getConfig('defaults.' . $this->type . '.' . $choice_type . '_wrapper_class', '');
        if ($wrapper_class) {
            $defaults['wrapper']['class'] = (isset($defaults['wrapper']['class']) ? $defaults['wrapper']['class'] . ' ' : '') . $wrapper_class;
        }

        $choice_wrapper_class = $this->formHelper->getConfig('defaults.' . $this->type . '.choice_options.wrapper_class', '');
        $choice_label_class = $this->formHelper->getConfig('defaults.' . $this->type . '.choice_options.label_class', '');
        $choice_field_class = $this->formHelper->getConfig('defaults.' . $this->type . '.choice_options.field_class', '');

        if ($choice_wrapper_class) {
            $defaults['choice_options']['wrapper']['class'] = $choice_wrapper_class;
        }
        if ($choice_label_class) {
            $defaults['choice_options']['label_attr']['class'] = $choice_label_class;
        }
        if ($choice_field_class) {
            $defaults['choice_options']['attr']['class'] = $choice_field_class;
        }

        return $defaults;
    }
701420
protected function initDefaults()
    {
        if ($this->properties['header'] === null) {
            $this->setHeader($this->name);
        }
        if ($this->properties['type'] === null) {
            $this->setType(ColumnType::createType(ColumnType::TYPE_STRING));
        }
    }
404699
public function setDefaultValue($defaultValue)
    {
        $formDefinition = $this->getRootForm();
        $formDefinition->addElementDefaultValue($this->identifier, $defaultValue);
    }
611816
protected function setDefaultOptions(array $options=[])
	{
		if (isset($options['intermediate_model'])) {
			$intermediateModel = $options['intermediate_model'];
		} else {
			$this->text['intermediate_text'] = "[".$this->command->paintString('intermediate model' ,'brown')."]";
			$intermediateModel = $this->manager->getModel(
									$this->command->choice("Choice {$this->text['intermediate_text']} of both relation!",
									$this->manager->getModels()->keys()->toArray())
								 );
		}

		$this->defaultOptions = [
			'intermediate_model' => $intermediateModel,
			'first_key' => $this->model->getForeignKey(),
			'second_key' => $intermediateModel->getForeignKey(),
			'primary_key' => $this->model->getKeyName()
		];
	}
100641
public function setDefaultOptions()
    {
        curl_setopt_array($this->curl, [
            CURLOPT_TIMEOUT        => $this->timeout,
            CURLOPT_NOSIGNAL       => $this->nosignal,
            CURLOPT_FILETIME       => $this->fileTime,
            CURLOPT_USERAGENT      => $this->userAgent,
            CURLOPT_HEADER         => $this->header,
            CURLOPT_HTTPHEADER     => $this->headers,
            CURLOPT_RETURNTRANSFER => $this->returnTransfer,
            CURLOPT_SSL_VERIFYPEER => $this->sslVerifyPeer,
            CURLOPT_SSL_VERIFYHOST => $this->sslVerifyHost,
            CURLOPT_FRESH_CONNECT  => $this->freshConnect
        ]);
    }
386740
protected function setupDefaults()
    {
        $defaults = (isset($this->config['defaults'])) ?
            $this->config['defaults'] :
            [];

        foreach ($defaults as $key => $value) {
            if ($key == 'images') {
                if (empty($this->images)) {
                    $this->images = $value;
                }
            } elseif ($key == 'url' && $value === null) {
                $this->setUrl(app('url')->current());
            } elseif (! empty($value) && ! array_key_exists($key, $this->properties)) {
                $this->addProperty($key, $value);
            }
        }
    }
929054
public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $defaults = array(
            'tpl' => 'slider.value.min: __value_1__ slider.value.max: __value_2__',
            'min' => 0,
            'max' => 100,
            'orientation' => 'horizontal',
            'width' => '300px',
            'height' => '300px',
       );
    
        $resolver->setDefaults(array(
            'first_name' => 'first_slider',
            'second_name' => 'second_slider',
            'translation_domain' => 'ThraceFormBundle',
            'configs' => $defaults,
        ));
    
        $resolver->setNormalizers(array(
            'configs' => function (Options $options, $value) use ($defaults) {
                $value = array_replace_recursive($defaults, $value);
                
                if($value['orientation'] == 'horizontal'){
                    unset($value['height']);
                } else {
                    unset($value['width']);
                }
                
                $value['first_name'] = $options->get('first_name');
                $value['second_name'] = $options->get('second_name');
                $value['range'] = true;

                return $value;
            }
        ));
    }
711409
public function setDefaults(array $defaults)
    {
        foreach ($defaults as $option => $value) {
            $this->setDefault($option, $value);
        }

        return $this;
    }
1092043
public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $choiceList = new AjaxChoiceList(array());
        
        $resolver->setDefaults(array(
            'first_options'  => array(),
            'second_options' => array(),
            'error_bubbling' => false,
            'first_name' => 'first_name',
            'second_name' => 'second_name', 
            'widget' => 'choice',
            'translation_domain' => 'ThraceFormBundle',
            'multiple' => false,
            'choices' => array(),
            'configs' => array(),
        ));
        
        $resolver->setNormalizers(array(
            'first_options' => function (Options $options, $value){
                $value['choices'] = $options->get('choices');
                
                return $value;
            },
            'second_options' => function (Options $options, $value) use ($choiceList){
                $value['choice_list'] = $choiceList;
                $value['multiple'] = $options->get('multiple');
                
                return $value;
            },
            'configs' => function (Options $options, $value){
                $value['first_name'] = $options->get('first_name');
                $value['second_name'] = $options->get('second_name');
                $value['dependent_source'] = $options->get('dependent_source');
                $value['multiple'] = $options->get('multiple');

                return $value;
            },
        ));
        
        $resolver->setRequired(array('dependent_source'));
        
        $resolver->setAllowedValues(array(
            'widget' => array('choice')
        ));
        
        $resolver->setAllowedTypes(array(
            'multiple' => array('bool'),     
            'choices' => array('array'),   
            'dependent_source' => array('string'),   
        ));
    }
896232
protected function _setDefault()
    {
        if ($this->_default === null) {
            $this->_table->alter(
                sprintf('ALTER COLUMN %s DROP DEFAULT', $this->_database->prepareIdentifier($this->_name))
            );
        } else {
            $this->_table->alter(
                sprintf(
                    'ALTER COLUMN %s SET DEFAULT %s',
                    $this->_database->prepareIdentifier($this->_name),
                    $this->_database->prepareValue($this->_default, $this->_datatype)
                )
            );
        }
    }