Documentation

RatingHandler
in package
Uses UtilsProvider

Allow to handle rating popups depending on usage time.

Table of Contents

Constants

NEVER_SHOW_RATING_AGAIN  = -1

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
bool

getCanBeRated()

Get an array of slugs which can be rated now.

public getCanBeRated() : array<string|int, string>
Return values
array<string|int, string>

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
string

instance()

New instance.

public static instance() : mixed
Tags
codeCoverageIgnore

setupConstants()

Make sure the REAL_UTILS constants are available.

public static setupConstants() : mixed

__construct()

C'tor.

private __construct() : mixed
Tags
codeCoverageIgnore

        
On this page

Search results