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

Create web service core_badges_get_badge_users

    XMLWordPrintable

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Future Dev
    • None
    • Badges, Web Services

    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

              Unassigned Unassigned
              stefanerlachner Stefan Erlachner
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 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 hour, 32 minutes
                  1h 32m