Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
core_badges

Files

file  alignment_exporter.php
 Contains alignment class for displaying a badge alignment.
 
file  assertion_exporter.php
 Contains class for displaying a assertion.
 
file  backpack_api.php
 Communicate with backpacks.
 
file  backpack_api_mapping.php
 Represent the url for each method and the encoding of the parameters and response.
 
file  backpack_exporter.php
 Contains competency class for displaying a badge backpack.
 
file  badgeclass_exporter.php
 Contains class for displaying a badgeclass.
 
file  collection_exporter.php
 Contains class for displaying a collection.
 
file  endorsement_exporter.php
 Contains endorsement class for displaying a badge endorsement.
 
file  external.php
 Badges external API.
 
file  external_backpack.php
 External backpack form.
 
file  external_backpacks_page.php
 Manage enabled backpacks for the site.
 
file  external_backpacks_table.php
 List of enabled backpacks for the site.
 
file  issuer_exporter.php
 Contains class for displaying a issuer.
 
file  lib.php
 Defines various library functions.
 
file  observer.php
 Local stuff for category enrolment plugin.
 
file  recipient_exporter.php
 Contains class for displaying a recipient.
 
file  related_info_exporter.php
 Contains related class for displaying information of a related badge.
 
file  upgradelib.php
 Contains upgrade and install functions for badges.
 
file  user_badge_exporter.php
 Contains user badge class for displaying a badge issued to a user.
 
file  verification_exporter.php
 Contains class for displaying a recipient.
 

Namespaces

 core_badges
  
 
 core_badges\external
  
 
 core_badges\form
  
 
 core_badges\output
  
 
 core_badges\privacy
  
 

Classes

class  core_badges\backpack_api
 Class for communicating with backpacks. More...
 
class  core_badges\backpack_api_mapping
 Represent a single method for the remote api. More...
 
class  core_badges\external\alignment_exporter
 Class for displaying a badge alignment. More...
 
class  core_badges\external\assertion_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\external\backpack_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\external\badgeclass_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\external\collection_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\external\endorsement_exporter
 Class for displaying a badge endorsement. More...
 
class  core_badges\external\issuer_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\external\recipient_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\external\related_info_exporter
 Class for displaying information of a related badge. More...
 
class  core_badges\external\user_badge_exporter
 Class for displaying a badge issued to a user. More...
 
class  core_badges\external\verification_exporter
 Class for displaying a badge competency. More...
 
class  core_badges\form\external_backpack
 Backpack form class. More...
 
class  core_badges\output\external_backpacks_page
 Manage enabled backpacks renderable. More...
 
class  core_badges\output\external_backpacks_table
 Backpacks table class. More...
 
class  core_badges\privacy\provider
 Data provider class. More...
 
class  core_badges_external
 
class  core_badges_observer
 Event observer for badges. More...
 

Functions

 badges_install_default_backpacks ()
 Called on install or upgrade to create default list of backpacks a user can connect to. More...
 
 core_badges_myprofile_navigation (\core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course)
 Add nodes to myprofile page. More...
 

Variables

global core_badges::$CFG
 
const core_badges::BADGE_ACCESS_TOKEN 'access'
 
const core_badges::BADGE_BACKPACK_ID_TOKEN 'backpack_id'
 
const core_badges::BADGE_EXPIRES_TOKEN 'expires'
 
const core_badges::BADGE_REFRESH_TOKEN 'refresh'
 
const core_badges::BADGE_USER_ID_TOKEN 'user_id'
 

Detailed Description

Function Documentation

◆ badges_install_default_backpacks()

badges_install_default_backpacks ( )

Called on install or upgrade to create default list of backpacks a user can connect to.

Don't use the global defines from badgeslib because this is for install/upgrade.

Return values
void

◆ core_badges_myprofile_navigation()

core_badges_myprofile_navigation ( \core_user\output\myprofile\tree  $tree,
  $user,
  $iscurrentuser,
  $course 
)

Add nodes to myprofile page.

Parameters
core_user\output\myprofile\tree$treeTree object
stdClass$useruser object
bool$iscurrentuser
stdClass$courseCourse object
Return values
bool