PHP 클래스 Piwik\Plugins\Marketplace\UpdateCommunication

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( SystemSettings $settings )
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 )

메소드 상세

__construct() 공개 메소드

public __construct ( SystemSettings $settings )
$settings Piwik\Plugins\CoreUpdater\SystemSettings

buildNotificationMessage() 보호된 메소드

protected buildNotificationMessage ( $pluginsToBeNotified, $hasThemeUpdate, $hasPluginUpdate )

canBeEnabled() 공개 정적인 메소드

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.
public static canBeEnabled ( ) : boolean
리턴 boolean

getLatestVersion() 보호된 메소드

protected getLatestVersion ( $plugin )

getLatestVersionSent() 보호된 메소드

protected getLatestVersionSent ( $plugin )

getNotificationSentOptionName() 보호된 메소드

protected getNotificationSentOptionName ( $plugin )

getPluginsHavingUpdate() 보호된 메소드

protected getPluginsHavingUpdate ( )

hasNotificationAlreadyReceived() 보호된 메소드

protected hasNotificationAlreadyReceived ( $plugin )

isEnabled() 공개 메소드

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.
public isEnabled ( ) : boolean
리턴 boolean

sendEmailNotification() 보호된 메소드

Send an email notification to all super users.
protected sendEmailNotification ( $subject, $message )
$subject
$message

sendNotificationIfUpdatesAvailable() 공개 메소드

For each update we send an email only once.

sendNotifications() 보호된 메소드

protected sendNotifications ( $pluginsToBeNotified )

setHasLatestUpdateNotificationReceived() 보호된 메소드