library/Garp/Browsebox.php
public function setConfig(Garp_Util_Configuration $options) {
        $options->obligate('id')
                ->obligate('model')
                ->setDefault('pageSize', 10)
                ->setDefault('chunkSize', 1)
                ->setDefault('order', null)
                ->setDefault('conditions', null)
                ->setDefault('viewPath', 'partials/browsebox/'.$options['id'].'.phtml')
                ->setDefault('bindings', array())
                ->setDefault('filters', array())
                ->setDefault('cycle', false)
                ->setDefault('javascriptOptions', new Garp_Util_Configuration())
                ->setDefault('select', null)
        ;
        if (!empty($options['filters'])) {
            $options['filters'] = $this->_parseFilters($options['filters']);
        }
        $this->_options = $options;
        return $this;
    }
public function setConfig(Garp_Util_Configuration $options) {
        $options->obligate('id')
                ->obligate('model')
                ->setDefault('pageSize', 10)
                ->setDefault('chunkSize', 1)
                ->setDefault('order', null)
                ->setDefault('conditions', null)
                ->setDefault('viewPath', 'partials/browsebox/'.$options['id'].'.phtml')
                ->setDefault('bindings', array())
                ->setDefault('filters', array())
                ->setDefault('cycle', false)
                ->setDefault('javascriptOptions', new Garp_Util_Configuration())
                ->setDefault('select', null)
        ;
        if (!empty($options['filters'])) {
            $options['filters'] = $this->_parseFilters($options['filters']);
        }
        $this->_options = $options;
        return $this;
    }
public function setConfig ( Garp_Util_Configuration $ options ) { $ options -> obligate ( 'id' ) -> obligate ( 'model' ) -> setDefault ( 'pageSize' , 10 ) -> setDefault ( 'chunkSize' , 1 ) -> setDefault ( 'order' , null ) -> setDefault ( 'conditions' , null ) -> setDefault ( 'viewPath' , 'partials/browsebox/' . $ options [ 'id' ] . '.phtml' ) -> setDefault ( 'bindings' , array ( ) ) -> setDefault ( 'filters' , array ( ) ) -> setDefault ( 'cycle' , false ) -> setDefault ( 'javascriptOptions' , new Garp_Util_Configuration ( ) ) -> setDefault ( 'select' , null ) ; if ( ! empty ( $ options [ 'filters' ] ) ) { $ options [ 'filters' ] = $ this -> _parseFilters ( $ options [ 'filters' ] ) ; } $ this -> _options = $ options ; return $ this ; }
Set configuration options. This method makes sure there are usable defaults in place.
@param Garp_Util_Configuration $options
@return Garp_Browsebox $this
Set configuration options . This method makes sure there are usable defaults in place .