\DevOwl\RealUtilsTransientHandler

Handle site-wide transients for a specific plugin. It is static-only access and set.

Do not use this handler for other data than timestamps and booleans!

All your used transient keys should be in constants so they are readable in code and as short as possible in database.

Summary

Methods
Properties
Constants
set()
get()
No public properties found
OPTION_NAME
TRANSIENT_INITIATOR_CROSS
TRANSIENT_NEXT_CROSS_SELLING
TRANSIENT_CROSS_SKIP
TRANSIENT_CROSS_COUNTER
TRANSIENT_REDIRECT_AFTER_ACTIVATE
TRANSIENT_NEXT_RATING
json()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

OPTION_NAME

OPTION_NAME ='real_utils-transients'

TRANSIENT_INITIATOR_CROSS

TRANSIENT_INITIATOR_CROSS ='cross'

TRANSIENT_NEXT_CROSS_SELLING

TRANSIENT_NEXT_CROSS_SELLING ='ncs'

TRANSIENT_CROSS_SKIP

TRANSIENT_CROSS_SKIP ='cs'

TRANSIENT_CROSS_COUNTER

TRANSIENT_CROSS_COUNTER ='cc'

TRANSIENT_REDIRECT_AFTER_ACTIVATE

TRANSIENT_REDIRECT_AFTER_ACTIVATE ='raa'

TRANSIENT_NEXT_RATING

TRANSIENT_NEXT_RATING ='nr'

Methods

set()

set(\DevOwl\RealUtils\AbstractInitiator  $initiator,string  $key,mixed  $value): boolean

Set a value for a given plugin.

Parameters

\DevOwl\RealUtils\AbstractInitiator $initiator
string $key
mixed $value

Returns

boolean

get()

get(\DevOwl\RealUtils\AbstractInitiator|string  $initiator,string  $key,mixed  $default = null)

Get a value for a given plugin.

Parameters

\DevOwl\RealUtils\AbstractInitiator|string $initiator
string $key
mixed $default

json()

json(array  $set = null)

Get the JSON from database option.

Parameters

array $set

Write back to database