org.puremvc.php.patterns.command

# Class: SimpleCommand Source Location: /patterns/command/SimpleCommand.php
### Class Overview
    Notifier
       |
       ..SimpleCommand
A base ICommand implementation. #### Author(s): Implements interfaces: ICommand INotifier | ### Variables $facade | ### Methods __construct execute
### Child classes: StartModelCommand Starts the application model, for the basic demo this command loads the CSS file selected on the index.php page. StartViewCommand Starts the view class which initializes php/html templates. | ### Inherited Methods #### Class: Notifier Notifier::__construct() Notifier::sendNotification()
### Class Details [line 31] A base ICommand implementation. Your subclass should override the execute method where your business logic will handle the INotification . #### Tags:
see: | org.puremvc.patterns.command.MacroCommand MacroCommand
see: | org.puremvc.patterns.observer.Notification Notification
see: | org.puremvc.core.controller.Controller Controller
[ Top ] ### Class Variables #### $facade = [line 33] #### Tags:
access: | protected
Type: | mixed
Overrides: | Array
[ Top ] ### Class Methods ### constructor __construct [line 35]
`SimpleCommand __construct( )`
#### Tags:
access: | public
Overrides Notifier::__construct() (parent method not documented) [ Top ] ### method execute [line 51]
`void execute( $notification)`
Fulfill the use.case initiated by the given INotification . In the Command Pattern, an application use.case typically begins with some user action, which results in an INotification being broadcast, which is handled by business logic in the execute method of an ICommand . #### Tags:
access: | public
Overridden in child classes as: StartModelCommand::execute() Override execute to add logic. In the StartModelCommand the ApplicationDataProxy is started and registered, and then the selected CSS file is loaded. StartViewCommand::execute() The execute() method is overridden in order to add your application logic for this specific command. #### Parameters:
notification | $notification | the INotification to handle.
[ Top ] Documentation generated on Tue, 30 Sep 2008 08:05:46 -0700 by phpDocumentor 1.4.0