Documentation

AnnouncementView
in package
Uses UtilsProvider

Show announcement notices.

Table of Contents

Properties

$pool  : AnnouncementPool
Announcement pool.

Methods

admin_notices()  : mixed
Output parsed announcement.
getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
getPool()  : mixed
Get pool instance.
instance()  : mixed
New instance.
setupConstants()  : mixed
Make sure the RPM_WP_CLIENT constants are available.
dismissOnClickHandler()  : mixed
Dismiss-functionality is handled through a inline-onclick handler because we do not need to enqueue an extra script on each page.
img()  : mixed
Return `<img ` for a given announcement. Can be empty if no graphic is set.
srcset()  : mixed
Return `src` and `srcset` attributes as string for a given announcement.
__construct()  : mixed
C'tor.

Properties

Methods

admin_notices()

Output parsed announcement.

public admin_notices() : mixed

getPluginConstantPrefix()

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

public getPluginConstantPrefix() : string
Return values
string

getPool()

Get pool instance.

public getPool() : mixed
Tags
codeCoverageIgnore

setupConstants()

Make sure the RPM_WP_CLIENT constants are available.

public static setupConstants() : mixed

dismissOnClickHandler()

Dismiss-functionality is handled through a inline-onclick handler because we do not need to enqueue an extra script on each page.

protected dismissOnClickHandler(Announcement $announcement) : mixed
Parameters
$announcement : Announcement

        
On this page

Search results