org.puremvc.php.patterns.observer

# Class: Notifier Source Location: /patterns/observer/Notifier.php
### Class Overview
A Base INotifier implementation. #### Author(s): Implements interfaces: INotifier | ### Variables $facade | ### Methods __construct sendNotification
### Child classes: MacroCommand A base ICommand implementation that executes other ICommand s. SimpleCommand A base ICommand implementation. Mediator A base IMediator implementation. Proxy A base IProxy implementation.
### Class Details [line 42] A Base INotifier implementation. MacroCommand, Command, Mediator and Proxy all have a need to send Notifications . The INotifier interface provides a common method called sendNotification that relieves implementation code of the necessity to actually construct Notifications . The Notifier class, which all of the above mentioned classes extend, provides an initialized reference to the Facade Singleton, which is required for the convienience method for sending Notifications , but also eases implementation as these classes have frequent Facade 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 INotification 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