\DevOwl\RealUtilsAbstractInitiator

This is the main class. You need to create an own class extending from this one to initiate the ads system. The configuration is done by an abstract schema. That means, all configurations need to be implemented through methods.

Summary

Methods
Properties
Constants
getPluginBase()
getPluginAssets()
getRateLink()
getKeyFeatures()
getHeroButton()
getWelcomePageImageHeight()
getSupportLink()
getNextRatingPopup()
getAssetsUrl()
start()
getPluginSlug()
getPluginFile()
getWelcomePage()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$welcomePage
N/A

Properties

$welcomePage

$welcomePage :\DevOwl\RealUtils\WelcomePage

Welcome page.

Type

\DevOwl\RealUtils\WelcomePage

Methods

getPluginBase()

getPluginBase(): \MatthiasWeb\Utils\Base

Get the plugin's base instance. It is needed so our initiator can access dynamically constants and configurations.

Returns

\MatthiasWeb\Utils\Base

getPluginAssets()

getPluginAssets(): \MatthiasWeb\Utils\Assets

Get the plugin's assets instance. It is need to enqueue scripts and styles.

Returns

\MatthiasWeb\Utils\Assets

getRateLink()

getRateLink(): string

Get link to rate the plugin.

Returns

string

getKeyFeatures()

getKeyFeatures(): array<mixed,array>

Get three key features. See example implementation in real plugins for more information.

Returns

array<mixed,array>

getHeroButton()

getHeroButton(): array<mixed,string>|null

Get the hero button link [0] and text [1] for the welcome page.

Returns

array<mixed,string>|null

getWelcomePageImageHeight()

getWelcomePageImageHeight(): integer

Get the image height for the welcome page key features.

Returns

integer

getSupportLink()

getSupportLink()

Get support link. Visible in welcome page.

getNextRatingPopup()

getNextRatingPopup(boolean  $isFirstTime)

Get the timestamp when the next rating popup should be shown.

Parameters

boolean $isFirstTime

This is true if the popup should be shown the first time

getAssetsUrl()

getAssetsUrl(string  $path = '')

Get the external URL to assets. The default implementation relies on "wp-{TD}". Why TD? The text domain is currently always the same as the slug, even if we are using the lite version. Please ensure a trailing slash, if you override it!

Parameters

string $path

start()

start()

Initialize all available things depending on the configuration.

getPluginSlug()

getPluginSlug()

getPluginFile()

getPluginFile()

getWelcomePage()

getWelcomePage()

Get welcome page.