메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | boolean |
protected sendEmailNotification ( $subject, $message ) | ||
$subject | ||
$message |
public sendNotificationIfUpdatesAvailable ( ) : boolean | ||
리턴 | boolean |
protected setHasLatestUpdateNotificationReceived ( $plugin ) |