\DevOwl\RealUtilsRatingHandler

Allow to handle rating popups depending on usage time.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
dismiss()
getCanBeRated()
getLinks()
instance()
No public properties found
NEVER_SHOW_RATING_AGAIN
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Constants

NEVER_SHOW_RATING_AGAIN

NEVER_SHOW_RATING_AGAIN =-1

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this package so we can utils package natively.

Returns

string

setupConstants()

setupConstants()

Make sure the REAL_UTILS constants are available.

dismiss()

dismiss(string  $slug,boolean  $force): boolean

Dismiss a rating popup for a configured time or completely.

Parameters

string $slug
boolean $force

Returns

boolean

getCanBeRated()

getCanBeRated(): array<mixed,string>

Get an array of slugs which can be rated now.

Returns

array<mixed,string>

getLinks()

getLinks(): array

Get an array of links of each slug.

Returns

array

instance()

instance()

New instance.

__construct()

__construct()

C'tor.