org-puremvc-php-multicore
[ class tree: org-puremvc-php-multicore ] [ index: org-puremvc-php-multicore ] [ all elements ]

Class: INotification

Source Location: /org/puremvc/php/multicore/interfaces/INotification.php

Interface Overview


The interface definition for a PureMVC Notification.


Author(s):

Methods



Class Details

[line 45]
The interface definition for a PureMVC Notification.

PureMVC does not rely upon underlying event models such as the one provided with others like Flash, and PHP does not have an inherent event model.

The Observer Pattern as implemented within PureMVC exists to support event-driven communication between the application and the actors of the MVC triad.

PureMVC Notifications follow a 'Publish/Subscribe' pattern. PureMVC classes need not be related to each other in a parent/child relationship in order to communicate with one another using Notifications.




Tags:

see:  IObserver
see:  IView


[ Top ]


Class Methods


method getBody [line 75]

mixed getBody( )

Body getter

Get the body of the INotification instance.




Tags:

return:  The body of the INotification instance.
access:  public


[ Top ]

method getName [line 56]

string getName( )

Name getter

Get the name of the INotification instance.

No setter, should be set by constructor only




Tags:

return:  Name of the INotification instance.
access:  public


[ Top ]

method getType [line 94]

string getType( )

Type getter

Get the type of the INotification instance.




Tags:

return:  The type of the INotification instance.
access:  public


[ Top ]

method setBody [line 66]

void setBody( object $body)

Body setter

Set the body of the INotification instance.




Tags:

access:  public


Parameters:

object   $body   The body of the INotification instance.

[ Top ]

method setType [line 85]

void setType( string $type)

Type setter

Set the type of the INotification instance.




Tags:

access:  public


Parameters:

string   $type   The type of the INotification instance.

[ Top ]

method toString [line 103]

string toString( )

String representation

Get the string representation of the INotification instance




Tags:

access:  public


[ Top ]


Documentation generated on Mon, 03 Aug 2009 04:57:56 +0000 by phpDocumentor 1.4.2