original_string: protected function _addSurveySourceAttributesToExportModel(\MUtil_Model_ModelAbstract $model, \Gems_Tracker_Survey $survey, array $data, array &$prefixes)
      {
          $source = $survey->getSource();
          $attributes = $source->getAttributes();
          $preExistingFields = $model->getColNames('label');
          $attributes = array_diff($attributes, $preExistingFields);
  
          foreach($attributes as $attribute) {
              $model->set($attribute, 'label', $attribute);
          }
      }
code: protected function _addSurveySourceAttributesToExportModel(\MUtil_Model_ModelAbstract $model, \Gems_Tracker_Survey $survey, array $data, array &$prefixes)
      {
          $source = $survey->getSource();
          $attributes = $source->getAttributes();
          $preExistingFields = $model->getColNames('label');
          $attributes = array_diff($attributes, $preExistingFields);
  
          foreach($attributes as $attribute) {
              $model->set($attribute, 'label', $attribute);
          }
      }
code_tokens: protected function _addSurveySourceAttributesToExportModel ( \ MUtil_Model_ModelAbstract $ model , \ Gems_Tracker_Survey $ survey , array $ data , array & $ prefixes ) { $ source = $ survey -> getSource ( ) ; $ attributes = $ source -> getAttributes ( ) ; $ preExistingFields = $ model -> getColNames ( 'label' ) ; $ attributes = array_diff ( $ attributes , $ preExistingFields ) ; foreach ( $ attributes as $ attribute ) { $ model -> set ( $ attribute , 'label' , $ attribute ) ; } }
docstring: Add the survey source attributes to the export model that have not yet been set.
  
  @param MUtil_Model_ModelAbstract $model
  @param Gems_Tracker_Survey $survey
  @param array $data
  @param array $prefixes
  @throws Gems_Exception
docstring_tokens: Add the survey source attributes to the export model that have not yet been set .