original_string: public function getExtraDataFormElements(\Gems_Form $form, $data)
  	{
          $this->form = $form;
          $elements   = [];
  
          if (isset($data['gto_id_track']) && $data['gto_id_track']) {
              $elements['add_track_fields'] = $this->_createCheckboxElement(
                      'add_track_fields',
                      $this->_('Track fields'),
                      $this->_('Add track fields to export')
                      );
          }
          if ($this->currentUser->hasPrivilege('pr.export.add-resp-nr')) {
              $elements['export_resp_nr'] = $this->_createCheckboxElement(
                      'export_resp_nr',
                      $this->getRespondentModel()->get('gr2o_patient_nr', 'label'),
                      $this->_('Add respondent nr to export')
                      );
          }
          if ($this->currentUser->hasPrivilege('pr.export.gender-age')) {
              $elements['export_resp_gender'] = $this->_createCheckboxElement(
                      'export_resp_gender',
                      $this->_('Respondent gender'),
                      $this->_('Add respondent gender to export')
                      );
  
              $elements['export_birth_year'] = $this->_createCheckboxElement(
                      'export_birth_year',
                      $this->_('Respondent birth year'),
                      $this->_('Add respondent birth year to export')
                      );
  
              $elements['export_birth_month'] = $this->_createCheckboxElement(
                      'export_birth_month',
                      $this->_('Respondent birth month'),
                      $this->_('Add respondent birth month to export')
                      );
          }
  
          $elements['export_track_reception_code'] = $this->_createCheckboxElement(
              'export_track_reception_code',
              $this->_('Track reception code'),
              $this->_('Add reception code of track')
          );
  
          $elements['export_token_reception_code'] = $this->_createCheckboxElement(
              'export_token_reception_code',
              $this->_('Token reception code'),
              $this->_('Add reception code of token')
          );
  
          return $elements;
      }
code: public function getExtraDataFormElements(\Gems_Form $form, $data)
  	{
          $this->form = $form;
          $elements   = [];
  
          if (isset($data['gto_id_track']) && $data['gto_id_track']) {
              $elements['add_track_fields'] = $this->_createCheckboxElement(
                      'add_track_fields',
                      $this->_('Track fields'),
                      $this->_('Add track fields to export')
                      );
          }
          if ($this->currentUser->hasPrivilege('pr.export.add-resp-nr')) {
              $elements['export_resp_nr'] = $this->_createCheckboxElement(
                      'export_resp_nr',
                      $this->getRespondentModel()->get('gr2o_patient_nr', 'label'),
                      $this->_('Add respondent nr to export')
                      );
          }
          if ($this->currentUser->hasPrivilege('pr.export.gender-age')) {
              $elements['export_resp_gender'] = $this->_createCheckboxElement(
                      'export_resp_gender',
                      $this->_('Respondent gender'),
                      $this->_('Add respondent gender to export')
                      );
  
              $elements['export_birth_year'] = $this->_createCheckboxElement(
                      'export_birth_year',
                      $this->_('Respondent birth year'),
                      $this->_('Add respondent birth year to export')
                      );
  
              $elements['export_birth_month'] = $this->_createCheckboxElement(
                      'export_birth_month',
                      $this->_('Respondent birth month'),
                      $this->_('Add respondent birth month to export')
                      );
          }
  
          $elements['export_track_reception_code'] = $this->_createCheckboxElement(
              'export_track_reception_code',
              $this->_('Track reception code'),
              $this->_('Add reception code of track')
          );
  
          $elements['export_token_reception_code'] = $this->_createCheckboxElement(
              'export_token_reception_code',
              $this->_('Token reception code'),
              $this->_('Add reception code of token')
          );
  
          return $elements;
      }
code_tokens: public function getExtraDataFormElements ( \ Gems_Form $ form , $ data ) { $ this -> form = $ form ; $ elements = [ ] ; if ( isset ( $ data [ 'gto_id_track' ] ) && $ data [ 'gto_id_track' ] ) { $ elements [ 'add_track_fields' ] = $ this -> _createCheckboxElement ( 'add_track_fields' , $ this -> _ ( 'Track fields' ) , $ this -> _ ( 'Add track fields to export' ) ) ; } if ( $ this -> currentUser -> hasPrivilege ( 'pr.export.add-resp-nr' ) ) { $ elements [ 'export_resp_nr' ] = $ this -> _createCheckboxElement ( 'export_resp_nr' , $ this -> getRespondentModel ( ) -> get ( 'gr2o_patient_nr' , 'label' ) , $ this -> _ ( 'Add respondent nr to export' ) ) ; } if ( $ this -> currentUser -> hasPrivilege ( 'pr.export.gender-age' ) ) { $ elements [ 'export_resp_gender' ] = $ this -> _createCheckboxElement ( 'export_resp_gender' , $ this -> _ ( 'Respondent gender' ) , $ this -> _ ( 'Add respondent gender to export' ) ) ; $ elements [ 'export_birth_year' ] = $ this -> _createCheckboxElement ( 'export_birth_year' , $ this -> _ ( 'Respondent birth year' ) , $ this -> _ ( 'Add respondent birth year to export' ) ) ; $ elements [ 'export_birth_month' ] = $ this -> _createCheckboxElement ( 'export_birth_month' , $ this -> _ ( 'Respondent birth month' ) , $ this -> _ ( 'Add respondent birth month to export' ) ) ; } $ elements [ 'export_track_reception_code' ] = $ this -> _createCheckboxElement ( 'export_track_reception_code' , $ this -> _ ( 'Track reception code' ) , $ this -> _ ( 'Add reception code of track' ) ) ; $ elements [ 'export_token_reception_code' ] = $ this -> _createCheckboxElement ( 'export_token_reception_code' , $ this -> _ ( 'Token reception code' ) , $ this -> _ ( 'Add reception code of token' ) ) ; return $ elements ; }
docstring: Get form elements for the specific Export
  
  @param  \Gems_Form $form existing form type
  @param  array data existing options set in the form
  @return array of form elements
docstring_tokens: Get form elements for the specific Export