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

Create web service core_badges_get_badge_users

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • 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

              • Assignee:
                Unassigned
                Reporter:
                stefanerlachner Stefan Erlachner
                Participants:
                Component watchers:
                Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: