Method | Description | |
---|---|---|
__construct ( |
||
canBeEnabled ( ) : boolean | Checks whether a plugin update notification can be enabled or not. It cannot be enabled if for instance the Marketplace is disabled or if update notifications are disabled in general. | |
isEnabled ( ) : boolean | Checks whether plugin update notification is enabled or not. If the marketplace is disabled or if update communication is disabled in general, it will return false as well. | |
sendNotificationIfUpdatesAvailable ( ) : boolean | Sends an email to all super users if there is an update available for any plugins from the Marketplace. |
Method | Description | |
---|---|---|
buildNotificationMessage ( $pluginsToBeNotified, $hasThemeUpdate, $hasPluginUpdate ) | ||
getLatestVersion ( $plugin ) | ||
getLatestVersionSent ( $plugin ) | ||
getNotificationSentOptionName ( $plugin ) | ||
getPluginsHavingUpdate ( ) | ||
hasNotificationAlreadyReceived ( $plugin ) | ||
sendEmailNotification ( $subject, $message ) | Send an email notification to all super users. | |
sendNotifications ( $pluginsToBeNotified ) | ||
setHasLatestUpdateNotificationReceived ( $plugin ) |
public __construct ( |
||
$settings |
protected buildNotificationMessage ( $pluginsToBeNotified, $hasThemeUpdate, $hasPluginUpdate ) |
public static canBeEnabled ( ) : boolean | ||
return | boolean |
protected getNotificationSentOptionName ( $plugin ) |
protected hasNotificationAlreadyReceived ( $plugin ) |
protected sendEmailNotification ( $subject, $message ) | ||
$subject | ||
$message |
public sendNotificationIfUpdatesAvailable ( ) : boolean | ||
return | boolean |
protected setHasLatestUpdateNotificationReceived ( $plugin ) |