phpDocumentor Notification
Classes
[ class tree: Notification ] [ index: Notification ] [ all elements ]

Class: NotificationEvent_1_0

Source Location: /modules/notification/classes/NotificationEvent_1_0.class

Class NotificationEvent_1_0

Class Overview

This is the base class for formatting Gallery events into notification messages.

Located in /modules/notification/classes/NotificationEvent_1_0.class [line 36]



		
				Author(s):
		
API Tags:
Abstract:  

Properties

Methods

[ Top ]
Property Summary
mixed   $_event  

[ Top ]
Method Summary
array   getDescription()   Return a localized description of the event.
GalleryEvent   getEvent()   Set the event that caused this notification to be created.
array   getEventSpecs()   Returns the Event Specification The event specification determines the selection criteria for the particular event. The only required entry is 'eventName'.
mixed   getItemId()   Get the item id contained in the event or return 0 if there is no item id.
array   getNotificationMessage()   Return a formatted and localized plain text message describing the event to be used in any notification message.
string   getPermission()   What permission of the item should be checked to see if a user is allowed to get that event. Setting to null will limit the notifications to administrators
boolean   isAppropriateForItem()   Determines if the event is appropriate for the supplied item. This could be null and might not be an object.
boolean   isGlobal()   Determines if this notification is global or applies to an item
void   setEvent()   Set the event that caused this notification to be created.
array   _translateText()   Provide a common routine to do translations of descriptions and messages

[ Top ]
Properties
mixed   $_event [line 38]

[ Top ]
Methods
getEvent  [line 52]

  GalleryEvent getEvent( )

Set the event that caused this notification to be created.



[ Top ]
isGlobal  [line 102]

  boolean isGlobal( )

Determines if this notification is global or applies to an item


API Tags:
Return:  true if the notification is not related to an item.


Redefined in descendants as:

[ Top ]
setEvent  [line 44]

  void setEvent( GalleryEvent $event  )

Set the event that caused this notification to be created.

Parameters:
GalleryEvent   $event: 


[ Top ]
_translateText  [line 139]

  array _translateText( string $moduleId, mixed $translateParms  )

Provide a common routine to do translations of descriptions and messages

Parameters:
string   $moduleId:  the module id
mixed   $translateParms:  parameters to the module translate method

API Tags:
Return:  GalleryStatus string A formatted and localized plain text message.
Access:  protected


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:42:21 -0700 by phpDocumentor 1.3.0RC6