original_string: public function getRespondentRelationFields() {
          $fields = array();
          $relationFields = $this->getFieldsOfType('relation');
  
          if (!empty($relationFields)) {
              $fieldNames = $this->getFieldNames();
              $fieldPrefix = FieldMaintenanceModel::FIELDS_NAME . FieldsDefinition::FIELD_KEY_SEPARATOR;
              foreach ($this->getFieldsOfType('relation') as $key => $field)
              {
                  $id = str_replace($fieldPrefix, '', $key);
                  $fields[$id] = $fieldNames[$key];
              }
          }
  
          return $fields;
      }
code: public function getRespondentRelationFields() {
          $fields = array();
          $relationFields = $this->getFieldsOfType('relation');
  
          if (!empty($relationFields)) {
              $fieldNames = $this->getFieldNames();
              $fieldPrefix = FieldMaintenanceModel::FIELDS_NAME . FieldsDefinition::FIELD_KEY_SEPARATOR;
              foreach ($this->getFieldsOfType('relation') as $key => $field)
              {
                  $id = str_replace($fieldPrefix, '', $key);
                  $fields[$id] = $fieldNames[$key];
              }
          }
  
          return $fields;
      }
code_tokens: public function getRespondentRelationFields ( ) { $ fields = array ( ) ; $ relationFields = $ this -> getFieldsOfType ( 'relation' ) ; if ( ! empty ( $ relationFields ) ) { $ fieldNames = $ this -> getFieldNames ( ) ; $ fieldPrefix = FieldMaintenanceModel :: FIELDS_NAME . FieldsDefinition :: FIELD_KEY_SEPARATOR ; foreach ( $ this -> getFieldsOfType ( 'relation' ) as $ key => $ field ) { $ id = str_replace ( $ fieldPrefix , '' , $ key ) ; $ fields [ $ id ] = $ fieldNames [ $ key ] ; } } return $ fields ; }
docstring: Get all respondent relation fields
  
  Returns an array of field id => field name
  
  @return array
docstring_tokens: Get all respondent relation fields