original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Load the settings for the round
docstring_tokens: Load the settings for the round