original_string: function get_attributes() {
          $configarray = (array) $this->config;
  
          $moodleattributes = array();
          $userfields = array_merge($this->userfields, $this->get_custom_user_profile_fields());
          foreach ($userfields as $field) {
              if (isset($configarray["field_map_$field"])) {
                  $moodleattributes[$field] = $configarray["field_map_$field"];
              }
          }
          $moodleattributes['username'] = $configarray["user_attribute"];
  
          return $moodleattributes;
      }
code: function get_attributes() {
          $configarray = (array) $this->config;
  
          $moodleattributes = array();
          $userfields = array_merge($this->userfields, $this->get_custom_user_profile_fields());
          foreach ($userfields as $field) {
              if (isset($configarray["field_map_$field"])) {
                  $moodleattributes[$field] = $configarray["field_map_$field"];
              }
          }
          $moodleattributes['username'] = $configarray["user_attribute"];
  
          return $moodleattributes;
      }
code_tokens: function get_attributes ( ) { $ configarray = ( array ) $ this -> config ; $ moodleattributes = array ( ) ; $ userfields = array_merge ( $ this -> userfields , $ this -> get_custom_user_profile_fields ( ) ) ; foreach ( $ userfields as $ field ) { if ( isset ( $ configarray [ "field_map_$field" ] ) ) { $ moodleattributes [ $ field ] = $ configarray [ "field_map_$field" ] ; } } $ moodleattributes [ 'username' ] = $ configarray [ "user_attribute" ] ; return $ moodleattributes ; }
docstring: Returns array containg attribute mappings between Moodle and Shibboleth.
  
  @return array
docstring_tokens: Returns array containg attribute mappings between Moodle and Shibboleth .