org.puremvc.php.demos

# Class: ApplicationFacade Source Location: /demos/basic/ApplicationFacade.php
### Class Overview
    Facade
       |
       ..ApplicationFacade
ApplicationFacade for the BasicDemo starts the Model, View Controller for the application. | ### Constants START_APPLICATION VIEW_DATA_READY | ### Methods getInstance initializeController startUp
### Inherited Variables #### Class: Facade Facade::$controller Facade::$instance Facade::$model Facade::$view | ### Inherited Methods #### Class: Facade Facade::__construct() Constructor. Facade::getInstance() Facade Singleton Factory method Facade::hasCommand() Check if a Command is registered for a given Notification Facade::hasMediator() Check to see if a Mediator is registered with the View. Facade::hasProxy() Check to see if a Proxy is registered with the Model. Facade::initializeController() Initialize the Controller . Facade::initializeFacade() Initialize the Singleton Facade instance. Facade::initializeModel() Initialize the Model . Facade::initializeView() Initialize the View . Facade::notifyObservers() Notify Observer s. Facade::registerCommand() Register an ICommand with the Controller by Notification name. Facade::registerMediator() Register a IMediator with the View . Facade::registerProxy() Register an IProxy with the Model by name. Facade::removeCommand() Remove a previously registered ICommand to INotification mapping from the Controller. Facade::removeMediator() Remove an IMediator from the View . Facade::removeProxy() Remove an IProxy from the Model by name. Facade::retrieveMediator() Retrieve an IMediator from the View . Facade::retrieveProxy() Retrieve an IProxy from the Model by name. Facade::sendNotification() Send an INotification .
### Class Details [line 22] ApplicationFacade for the BasicDemo starts the Model, View Controller for the application. [ Top ] ### Class Methods ### static method getInstance [line 37]
`static void getInstance( )`
Instance getter for the ApplicationFacade, this method starts the Facade. #### Tags:
access: | public
Overrides Facade::getInstance() (Facade Singleton Factory method) [ Top ] ### method initializeController [line 61]
`void initializeController( )`
Initializes the controller and gives you an opportunity to register application specific commands that extend SimpleCommand or MacroCommand with the PureMVC framework. #### Tags:
access: | protected
Overrides Facade::initializeController() (Initialize the Controller .) [ Top ] ### method startUp [line 52]
`void startUp( $filename, $cssName)`
Starts the application by sending a START_APPLICATION notification. The filename (/index.php) is sent along to demonstrate passing data along. #### Tags:
access: | public
#### Parameters:
| $filename |
| $cssName |
[ Top ] ### Class Constants #### START_APPLICATION = "startApplication" [line 27] Notification constant that starts the application. [ Top ] #### VIEW_DATA_READY = "viewDataReady" [line 31] Notification constant sent when view data is ready to be displayed. [ Top ] Documentation generated on Tue, 30 Sep 2008 08:05:42 -0700 by phpDocumentor 1.4.0