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

Class: Notifier

Source Location: /patterns/observer/Notifier.php

Class Overview


A Base
implementation.


Author(s):

Implements interfaces:

Variables

Methods


Child classes:

MacroCommand
A base
implementation that executes other
s.
SimpleCommand
A base
implementation.
Mediator
A base
implementation.
Proxy
A base
implementation.

Class Details

[line 42]
A Base
implementation.

and
all have a need to send
  1. Notifications
.

The

interface provides a common method called
that relieves implementation code of the necessity to actually construct
  1. Notifications
.

The

class, which all of the above mentioned classes extend, provides an initialized reference to the
Singleton, which is required for the convienience method for sending
  1. Notifications
, but also eases implementation as these classes have frequent
interactions and usually require access to the facade anyway.




Tags:

see:  org.puremvc.php.patterns.command.MacroCommand MacroCommand
see:  org.puremvc.php.patterns.command.SimpleCommand SimpleCommand
see:  org.puremvc.php.patterns.proxy.Proxy Proxy
see:  org.puremvc.php.patterns.mediator.Mediator Mediator
see:  org.puremvc.php.patterns.facade.Facade Facade


[ Top ]


Class Variables

$facade =

[line 56]

Send an
s.

Keeps us from having to construct new notification instances in our implementation code.




Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 63]

Notifier __construct( )



Tags:

access:  public


Overridden in child classes as:

MacroCommand::__construct()
Constructor.
SimpleCommand::__construct()
Mediator::__construct()
Constructor.
ApplicationMediator::__construct()
Constructor
Proxy::__construct()
Constructor
ApplicationDataProxy::__construct()
Constructor

[ Top ]

method sendNotification [line 58]

void sendNotification( $notificationName, [ $body = null], [ $type = null])



Tags:

access:  public


Parameters:

   $notificationName  
   $body  
   $type  

[ Top ]


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