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

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

Methods


Inherited Variables

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
.
Facade::initializeFacade()
Initialize the Singleton
instance.
Facade::initializeModel()
Initialize the
.
Facade::initializeView()
Initialize the
.
Facade::notifyObservers()
Notify
s.
Facade::registerCommand()
Register an
with the
by Notification name.
Facade::registerMediator()
Register a
with the
.
Facade::registerProxy()
Register an
with the
by name.
Facade::removeCommand()
Remove a previously registered
to
mapping from the Controller.
Facade::removeMediator()
Remove an
from the
.
Facade::removeProxy()
Remove an
from the
by name.
Facade::retrieveMediator()
Retrieve an
from the
.
Facade::retrieveProxy()
Retrieve an
from the
by name.
Facade::sendNotification()
Send an
.

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
.)

[ 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