Supporter
in package
Supporter / premium status UI shared across learner pages.
Table of Contents
Methods
- currentSupport() : array<string, mixed>|null
- Logged-in profile support status, or null when no profile is in the session.
- extendLinkLabel() : string
- Link text for buying another supporter period while one is still active.
- premiumUntil() : string|false
- renderInvite() : mixed
- Simple become-a-supporter line for non-premium users.
- renderRenew() : mixed
- Simple renew link for expired supporters.
- renderThankYou() : mixed
- Thank-you / status for premium users.
- context() : array<string, mixed>
- formatUntil() : mixed
- isActive() : mixed
- isUiAvailable() : bool
Methods
currentSupport()
Logged-in profile support status, or null when no profile is in the session.
public
static currentSupport(mixed $CFG) : array<string, mixed>|null
Parameters
- $CFG : mixed
Return values
array<string, mixed>|nullextendLinkLabel()
Link text for buying another supporter period while one is still active.
public
static extendLinkLabel(mixed $CFG) : string
Parameters
- $CFG : mixed
Return values
stringpremiumUntil()
public
static premiumUntil(Profile $profile) : string|false
Parameters
- $profile : Profile
Return values
string|falserenderInvite()
Simple become-a-supporter line for non-premium users.
public
static renderInvite(mixed $CFG) : mixed
Parameters
- $CFG : mixed
renderRenew()
Simple renew link for expired supporters.
public
static renderRenew(mixed $CFG) : mixed
Parameters
- $CFG : mixed
renderThankYou()
Thank-you / status for premium users.
public
static renderThankYou(mixed $CFG) : mixed
Parameters
- $CFG : mixed
context()
protected
static context(mixed $CFG) : array<string, mixed>
Parameters
- $CFG : mixed
Return values
array<string, mixed>formatUntil()
protected
static formatUntil(mixed $premium_until, mixed $CFG) : mixed
Parameters
- $premium_until : mixed
- $CFG : mixed
isActive()
protected
static isActive(Profile $profile, mixed $premium_until) : mixed
Parameters
- $profile : Profile
- $premium_until : mixed
isUiAvailable()
protected
static isUiAvailable(mixed $CFG) : bool
Parameters
- $CFG : mixed