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);
        }
    }
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);
        }
    }
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 ) ; } }
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
Add the survey source attributes to the export model that have not yet been set .