org.puremvc.php.interfaces
[ class tree: org.puremvc.php.interfaces ] [ index: org.puremvc.php.interfaces ] [ all elements ]

Class: IView

Source Location: /interfaces/IView.php

Interface Overview


The interface definition for a PureMVC View.


Author(s):

Methods



Class Details

[line 35]
The interface definition for a PureMVC View.

In PureMVC,

implementors assume these responsibilities:

In PureMVC, the

class assumes these responsibilities:
  • Maintain a cache of
    instances.
  • Provide methods for registering, retrieving, and removing
    1. IMediators
    .
  • Managing the observer lists for each
    in the application.
  • Providing a method for attaching
    1. IObservers
    to an
    's observer list.
  • Providing a method for broadcasting an
    .
  • Notifying the
    1. IObservers
    of a given
    when it broadcast.




Tags:

see:  org.puremvc.php.interfaces.INotification INotification
see:  org.puremvc.php.interfaces.IObserver IObserver
see:  org.puremvc.php.interfaces.IMediator IMediator


[ Top ]


Class Methods


method hasMediator [line 97]

void hasMediator( mediatorName $mediatorName)

Check to see if a Mediator is registered with the View.



Tags:

access:  public


Parameters:

mediatorName   $mediatorName   name of the
instance to check for.

[ Top ]

method notifyObservers [line 56]

void notifyObservers( INotification $note)

Notify the
  1. IObservers
for a particular
.

All previously attached

  1. IObservers
for this
's list are notified and are passed a reference to the
in the order in which they were registered.




Tags:

access:  public


Parameters:

notification   $note   the
to notify
  1. IObservers
of.

[ Top ]

method registerMediator [line 75]

void registerMediator( IMediator $mediator, mediator 1)

Register an
instance with the
.

Registers the

so that it can be retrieved by name, and further interrogates the
for its
interests.

If the

returns any
names to be notified about, an
is created encapsulating the
instance's
  1. handleNotification
method and registering it as an
for all
  1. INotifications
the
is interested in.




Tags:

access:  public


Parameters:

mediator   1   a reference to the
instance
mediatorName   $mediator   the name to associate with this
instance

[ Top ]

method registerObserver [line 44]

void registerObserver( notificationName $noteName, IObserver $observer)

Register an
to be notified of
  1. INotifications
with a given name.



Tags:

access:  public


Parameters:

notificationName   $noteName   the name of the
  1. INotifications
to notify this
of
observer   $observer   the
to register

[ Top ]

method removeMediator [line 90]

void removeMediator( mediatorName $mediatorName)

Remove an
from the
.



Tags:

access:  public


Parameters:

mediatorName   $mediatorName   name of the
instance to be removed.

[ Top ]

method retrieveMediator [line 83]

the retrieveMediator( mediatorName $mediatorName)

Retrieve an
from the
.



Tags:

return:  
instance previously registered with the given
  1. mediatorName
.
access:  public


Parameters:

mediatorName   $mediatorName   the name of the
instance to retrieve.

[ Top ]


Documentation generated on Tue, 30 Sep 2008 08:05:45 -0700 by phpDocumentor 1.4.0