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

Class: SimpleCommand

Source Location: /patterns/command/SimpleCommand.php

Class Overview

Notifier
   |
   ..SimpleCommand

A base
implementation.


Author(s):

Implements interfaces:

Variables

Methods


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 Details

[line 31]
A base
implementation.

Your subclass should override the

method where your business logic will handle the
.




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
.

In the Command Pattern, an application use.case typically begins with some user action, which results in an

being broadcast, which is handled by business logic in the
method of an
.




Tags:

access:  public


Overridden in child classes as:

StartModelCommand::execute()
Override execute to add logic. In the
the ApplicationDataProxy is started and registered, and then the selected CSS file is loaded.
StartViewCommand::execute()
The
  1. execute()
method is overridden in order to add your application logic for this specific command.

Parameters:

notification   $notification   the
to handle.

[ Top ]


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