RatingHandler
in package
Uses
UtilsProvider
Allow to handle rating popups depending on usage time.
Table of Contents
Constants
Methods
- dismiss() : bool
- Dismiss a rating popup for a configured time or completely.
- getCanBeRated() : array<string|int, string>
- Get an array of slugs which can be rated now.
- getLinks() : array<string|int, mixed>
- Get an array of links of each slug.
- getPluginConstantPrefix() : string
- Get the prefix of this package so we can utils package natively.
- instance() : mixed
- New instance.
- setupConstants() : mixed
- Make sure the REAL_UTILS constants are available.
- __construct() : mixed
- C'tor.
Constants
NEVER_SHOW_RATING_AGAIN
public
mixed
NEVER_SHOW_RATING_AGAIN
= -1
Methods
dismiss()
Dismiss a rating popup for a configured time or completely.
public
dismiss(string $slug, bool $force) : bool
Parameters
- $slug : string
- $force : bool
Return values
boolgetCanBeRated()
Get an array of slugs which can be rated now.
public
getCanBeRated() : array<string|int, string>
Return values
array<string|int, string>getLinks()
Get an array of links of each slug.
public
getLinks() : array<string|int, mixed>
Return values
array<string|int, mixed>getPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
public
getPluginConstantPrefix() : string
Return values
stringinstance()
New instance.
public
static instance() : mixed
Tags
setupConstants()
Make sure the REAL_UTILS constants are available.
public
static setupConstants() : mixed
__construct()
C'tor.
private
__construct() : mixed