protected function buildOptions()
    {
        $options = array(
            'arrows' => $this->arrows,
            'delayOut' => $this->delayOut,
            'durationIn' => $this->durationIn,
            'durationOut' => $this->durationOut,
            'valueLabels' => $this->valueLabels,
            'formatter' => $this->formatter,
            'step' => $this->step,
            'wheelMode' => $this->wheelMode,
            'wheelSpeed' => $this->wheelSpeed,
            'type' => ($this->type == 'dateRange' ? null : $this->inputType)
        );
        $this->options = array_filter($options);

        if ($this->minRange && $this->maxRange && $this->minRange < $this->maxRange) {
            $this->options = CMap::mergeArray(
                $this->options,
                array('range' => array('min' => $this->minRange, 'max' => $this->maxRange))
            );
        }
        if ($this->minValue && $this->maxValue && $this->minValue < $this->maxValue) {
            $this->options = CMap::mergeArray(
                $this->options,
                array('bounds' => array('min' => $this->minValue, 'max' => $this->maxValue))
            );
        }
        if ($this->minDefaultValue && $this->maxDefaultValue && $this->minDefaultValue < $this->maxDefaultValue) {
            $this->options = CMap::mergeArray(
                $this->options,
                array(
                    'defaultValues' => array(
                        'min' => $this->minDefaultValue,
                        'max' => $this->maxDefaultValue
                    )
                )
            );
        }
    }
protected function buildOptions()
    {
        $options = array(
            'arrows' => $this->arrows,
            'delayOut' => $this->delayOut,
            'durationIn' => $this->durationIn,
            'durationOut' => $this->durationOut,
            'valueLabels' => $this->valueLabels,
            'formatter' => $this->formatter,
            'step' => $this->step,
            'wheelMode' => $this->wheelMode,
            'wheelSpeed' => $this->wheelSpeed,
            'type' => ($this->type == 'dateRange' ? null : $this->inputType)
        );
        $this->options = array_filter($options);

        if ($this->minRange && $this->maxRange && $this->minRange < $this->maxRange) {
            $this->options = CMap::mergeArray(
                $this->options,
                array('range' => array('min' => $this->minRange, 'max' => $this->maxRange))
            );
        }
        if ($this->minValue && $this->maxValue && $this->minValue < $this->maxValue) {
            $this->options = CMap::mergeArray(
                $this->options,
                array('bounds' => array('min' => $this->minValue, 'max' => $this->maxValue))
            );
        }
        if ($this->minDefaultValue && $this->maxDefaultValue && $this->minDefaultValue < $this->maxDefaultValue) {
            $this->options = CMap::mergeArray(
                $this->options,
                array(
                    'defaultValues' => array(
                        'min' => $this->minDefaultValue,
                        'max' => $this->maxDefaultValue
                    )
                )
            );
        }
    }
protected function buildOptions ( ) { $ options = array ( 'arrows' => $ this -> arrows , 'delayOut' => $ this -> delayOut , 'durationIn' => $ this -> durationIn , 'durationOut' => $ this -> durationOut , 'valueLabels' => $ this -> valueLabels , 'formatter' => $ this -> formatter , 'step' => $ this -> step , 'wheelMode' => $ this -> wheelMode , 'wheelSpeed' => $ this -> wheelSpeed , 'type' => ( $ this -> type == 'dateRange' ? null : $ this -> inputType ) ) ; $ this -> options = array_filter ( $ options ) ; if ( $ this -> minRange && $ this -> maxRange && $ this -> minRange < $ this -> maxRange ) { $ this -> options = CMap :: mergeArray ( $ this -> options , array ( 'range' => array ( 'min' => $ this -> minRange , 'max' => $ this -> maxRange ) ) ) ; } if ( $ this -> minValue && $ this -> maxValue && $ this -> minValue < $ this -> maxValue ) { $ this -> options = CMap :: mergeArray ( $ this -> options , array ( 'bounds' => array ( 'min' => $ this -> minValue , 'max' => $ this -> maxValue ) ) ) ; } if ( $ this -> minDefaultValue && $ this -> maxDefaultValue && $ this -> minDefaultValue < $ this -> maxDefaultValue ) { $ this -> options = CMap :: mergeArray ( $ this -> options , array ( 'defaultValues' => array ( 'min' => $ this -> minDefaultValue , 'max' => $ this -> maxDefaultValue ) ) ) ; } }
Builds the options
Builds the options