PHP 클래스 Piwik\Notification\Manager

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

공개 메소드들

메소드 설명
cancel ( string $id ) Removes a posted notification by ID.
cancelAllNonPersistent ( ) Removes all temporary notifications.
getAllNotificationsToDisplay ( ) : ArrayObject Determine all notifications that needs to be displayed. They are sorted by priority. Highest priorities first.
notify ( string $id, Notification $notification ) Posts a notification that will be shown in Piwik's status bar. If a notification with the same ID has been posted and has not been closed/removed, it will be replaced with $notification.

비공개 메소드들

메소드 설명
addNotification ( $id, Notification $notification )
checkId ( $id )
getAllNotifications ( )
getSession ( ) : Piwik\Session\SessionNamespace
isSessionEnabled ( )
removeNotification ( $id )
removeOldestNotificationsIfThereAreTooMany ( )
saveNotificationAcrossUiRequestsIfNeeded ( $id, Notification $notification )

메소드 상세

cancel() 공개 정적인 메소드

Removes a posted notification by ID.
public static cancel ( string $id )
$id string The notification ID, see {@link notify()}.

cancelAllNonPersistent() 공개 정적인 메소드

Call this method after the notifications have been displayed to make sure temporary notifications won't be displayed twice.
public static cancelAllNonPersistent ( )

getAllNotificationsToDisplay() 공개 정적인 메소드

Determine all notifications that needs to be displayed. They are sorted by priority. Highest priorities first.
public static getAllNotificationsToDisplay ( ) : ArrayObject
리턴 ArrayObject

notify() 공개 정적인 메소드

Posts a notification that will be shown in Piwik's status bar. If a notification with the same ID has been posted and has not been closed/removed, it will be replaced with $notification.
public static notify ( string $id, Notification $notification )
$id string A unique identifier for this notification. The ID must be a valid HTML element ID. It can only contain alphanumeric characters (underscores can be used).
$notification Piwik\Notification The notification to post.