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;
    }
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;
    }
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 ; }
Returns array containg attribute mappings between Moodle and Shibboleth.

@return array
Returns array containg attribute mappings between Moodle and Shibboleth .