Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64735

Create web service core_badges_get_badge_users

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Badges, Web Services
    • Labels:

      Description

      This web service function will return the list of users that have earned a given badge:

      Parameters:
       ----------
      badgeids - Default: empty array --> all badges
      includeexpired - Default: false --> if true all users are returned, even if their badge is expired
      includesuspended - Default: false --> if true include disabled users as well
      Return value:
       -----------array of [
          struct{                
              badge struct [badge.id, badge.name, badge.status]                
              array of user [user.id,user.username,user.idnumber,user.suspended,badge_issued.dateissued,badge_issued.dateexpire]      
          }
          array of {         
              warnings struct [item, itemid, warningcode, message]      
          }
      ]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 minute
                  1m