Source for file IController.php
Documentation is available at IController.php
* PureMVC Multicore Port to PHP
* Partly based on PureMVC Port to PHP by:
* - Omar Gonzalez <omar@almerblank.com>
* - and Hasan Otuome <hasan@almerblank.com>
* Created on Jully 24, 2009
* @author Michel Chouinard <michel.chouinard@gmail.com>
* @copyright PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved.
* @license http://creativecommons.org/licenses/by/3.0/ Creative Commons Attribution 3.0 Unported License
* @package org.puremvc.php.multicore
require_once 'org/puremvc/php/multicore/interfaces/INotification.php';
* The interface definition for a PureMVC Controller.
* In PureMVC, an <b>IController</b> implementor
* follows the 'Command and Controller' strategy, and
* assumes these responsibilities:
* - Remembering which <b>ICommand</b>s are intended to handle
* which <b>INotifications</b>.
* - Registering itself as an <b>IObserver</b> with the <b>IView</b>
* for each <b>INotification</b> that it has an <b>ICommand</b>
* - Creating a new instance of the proper <b>ICommand</b> to handle
* a given <b>INotification</b> when notified by the <b>IView</b>.
* - Calling the <b>ICommand</b>'s <b>execute</b> method, passing
* in the <b>INotification</b>.
org\puremvc\php\multicore\interfaces\INotification.php
org\puremvc\php\multicore\interfaces\ICommand.php
* @package org.puremvc.php.multicore
* Register a particular <b>ICommand</b> class as the handler
* for a particular <b>INotification</b>.
* @param string $notificationName Name of the <b>INotification</b>.
* @param string $commandClassRef Class name of the <b>ICommand</b> implementation to register.
* Execute the <b>ICommand</b> previously registered as the
* handler for <b>INotification</b>s with the given notification name.
* @param INotification $notification The <b>INotification</b> to execute the associated <b>ICommand</b> for.
* Remove a previously registered <b>ICommand</b> to <b>INotification</b> mapping.
* @param string $notificationName Name of the <b>INotification</b> to remove the <b>ICommand</b> mapping for.
* Check if a <b>Command</b> is registered for a given <b>INotification</b>
* @param string $notificationName Name of the <b>INotification</b> to check for.
* @return bool Boolean: Whether a <b>Command</b> is currently registered for the given <var>notificationName</var>.
|