protected function loadRoundSettings()
    {
        $rounds = $this->getRoundsListAndSetDefault();
        $model  = $this->getModel();
        $model->set('gto_round_order', 'multiOptions', $rounds, 'size', count($rounds));

        if (count($rounds) === 1) {
            $model->set('gto_round_order', 'elementClass', 'Exhibitor');
        }

        if (! isset($this->formData['gto_round_order'], $rounds[$this->formData['gto_round_order']])) {
            $this->formData['gto_round_order'] = $this->defaultRound;
        }
        if (! isset($rounds[$this->formData['gto_round_order']])) {
            reset($rounds);
            $this->formData['gto_round_order'] = key($rounds);
        }
    }
protected function loadRoundSettings()
    {
        $rounds = $this->getRoundsListAndSetDefault();
        $model  = $this->getModel();
        $model->set('gto_round_order', 'multiOptions', $rounds, 'size', count($rounds));

        if (count($rounds) === 1) {
            $model->set('gto_round_order', 'elementClass', 'Exhibitor');
        }

        if (! isset($this->formData['gto_round_order'], $rounds[$this->formData['gto_round_order']])) {
            $this->formData['gto_round_order'] = $this->defaultRound;
        }
        if (! isset($rounds[$this->formData['gto_round_order']])) {
            reset($rounds);
            $this->formData['gto_round_order'] = key($rounds);
        }
    }
protected function loadRoundSettings ( ) { $ rounds = $ this -> getRoundsListAndSetDefault ( ) ; $ model = $ this -> getModel ( ) ; $ model -> set ( 'gto_round_order' , 'multiOptions' , $ rounds , 'size' , count ( $ rounds ) ) ; if ( count ( $ rounds ) === 1 ) { $ model -> set ( 'gto_round_order' , 'elementClass' , 'Exhibitor' ) ; } if ( ! isset ( $ this -> formData [ 'gto_round_order' ] , $ rounds [ $ this -> formData [ 'gto_round_order' ] ] ) ) { $ this -> formData [ 'gto_round_order' ] = $ this -> defaultRound ; } if ( ! isset ( $ rounds [ $ this -> formData [ 'gto_round_order' ] ] ) ) { reset ( $ rounds ) ; $ this -> formData [ 'gto_round_order' ] = key ( $ rounds ) ; } }
Load the settings for the round
Load the settings for the round