Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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  auth.php
 This file to proccess Oauth2 connects for backpack.
 
file  backpack_api.php
 Communicate with backpacks.
 
file  backpack_api2p1.php
 Communicate with backpacks.
 
file  backpack_api2p1_mapping.php
 Represent the url for each method and the encoding of the parameters and response.
 
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  badge_backpack_oauth2.php
 This file contains the form add/update oauth2 for backpack is connected.
 
file  badgeclass_exporter.php
 Contains class for displaying a badgeclass.
 
file  client.php
 Configurable OAuth2 client class.
 
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

namespace  core_badges
  
 
namespace  core_badges\external
  
 
namespace  core_badges\form
  
 
namespace  core_badges\oauth2
  
 
namespace  core_badges\output
  
 
namespace  core_badges\privacy
  
 

Classes

class  core_badges\backpack_api
 Class for communicating with backpacks. More...
 
class  core_badges\backpack_api2p1
 To process badges with backpack and control api request and this class using for Open Badge API v2.1 methods. More...
 
class  core_badges\backpack_api2p1_mapping
 Represent a single method for the remote api and this class using for Open Badge API v2.1 methods. 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\oauth2\auth
 Proccess Oauth2 connects to backpack site. More...
 
class  core_badges\oauth2\badge_backpack_oauth2
 Class badge_backpack_oauth2 for backpack is connected. More...
 
class  core_badges\oauth2\client
 Configurable OAuth2 client to request authorization and store token. 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\oauth2::BACKPACK_CHALLENGE_METHOD 'S256'
 
const core_badges\oauth2::BACKPACK_CODE_VERIFIER_TIME 60
 
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