Tsugi

BadgeShareRegistry
in package

Registry of badge share platforms. Returns platform instances without a case statement.

Table of Contents

Properties

$platforms  : array<string|int, BadgeSharePlatform>

Methods

getPlatforms()  : array<string|int, BadgeSharePlatform>
Get all configured share platforms.
renderShareLinks()  : string
Render share links for a badge.

Properties

Methods

Render share links for a badge.

public static renderShareLinks(string $assertUrl, string $badgeTitle[, string $courseTitle = '' ][, string|null $badgeGuid = null ]) : string
Parameters
$assertUrl : string

Badge assertion URL

$badgeTitle : string

Badge title for share text

$courseTitle : string = ''

Optional course/service name

$badgeGuid : string|null = null

Minted badge GUID for LinkedIn click tracking

Return values
string —

HTML fragment of share links


        
On this page

Search results