org-puremvc-php-multicore
[ class tree: org-puremvc-php-multicore ] [ index: org-puremvc-php-multicore ] [ all elements ]

Class: SimpleCommand

Source Location: /org/puremvc/php/multicore/patterns/command/SimpleCommand.php

Class Overview

Notifier
   |
   --SimpleCommand

A base ICommand implementation.


Author(s):

Implements interfaces:

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: Notifier

Notifier::__construct()
Notifier::facade()
Return the Multiton Facade instance
Notifier::initializeNotifier()
Initialize this INotifier instance.
Notifier::sendNotification()
Send a INotification.

Class Details

[line 42]
A base ICommand implementation.

Your subclass should override the execute method where your business logic will handle the INotification.




Tags:

see:  MacroCommand
see:  Notification
see:  Controller


[ Top ]


Class Methods


constructor __construct [line 54]

void __construct( )

Constructor.

Your subclass MUST define a constructor, be sure to call parent::__construct(); to have PHP instanciate the whole parent/child chain.




Tags:

access:  public


Overrides Notifier::__construct() (parent method not documented)

[ Top ]

method execute [line 70]

void execute( INotification $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



Implementation of:
ICommand::execute()
Execute Command

Parameters:

INotification   $notification   the INotification to handle.

[ Top ]


Documentation generated on Mon, 03 Aug 2009 04:58:02 +0000 by phpDocumentor 1.4.2