Commands
[ class tree: Commands ] [ index: Commands ] [ all elements ]

Source for file Command.php

Documentation is available at Command.php

  1. <?php
  2. /**
  3.  * MVClasses
  4.  *
  5.  * LICENSE
  6.  *
  7.  * "THE BEER-WARE LICENSE" (Revision 42):
  8.  * "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
  9.  * As long as you retain this notice you can do whatever you want with
  10.  * this stuff. If we meet some day, and you think this stuff is worth it,
  11.  * you can buy me a beer in return.
  12.  *
  13.  * @category    MVClasses
  14.  * @package     Commands
  15.  * @copyright   Copyright (c) 2007 Sven Strittmatter
  16.  */
  17.  
  18. /**
  19.  * @see HttpRequest
  20.  */
  21. require_once dirname(__FILE__)."/../RequestResponse/Http/HttpRequest.php";
  22. /**
  23.  * @see HttpResponse
  24.  */
  25. require_once dirname(__FILE__)."/../RequestResponse/Http/HttpResponse.php";
  26. /**
  27.  * @see TemplateView
  28.  */
  29. require_once dirname(__FILE__)."/../TemplateView/TemplateView.php";
  30.  
  31. /**
  32.  * Schnittstelle fuer Commands.
  33.  * 
  34.  * Ein Command realisiert eine Teil der Controller Seite
  35.  * des MVC-Patterns.
  36.  * 
  37.  * Ein Command-Objekt fuehrt eine konkrete Aktion aus. Ein
  38.  * Command verfuegt nur ueber eine oeffentliche Methode um
  39.  * das Comamnd auszufuehren.
  40.  * 
  41.  * @category    MVClasses
  42.  * @package     Commands
  43.  * @copyright     Copyright (c) 2007 Sven Strittmatter
  44.  * @author    "Sven Strittmatter" <ausserirdisch@sven-space.de>
  45.  * @version     1.0
  46.  * @link    http://www.sven-space.de/code/php/MVClasses
  47.  */
  48. interface Command {
  49.     /**
  50.      * Fuehrt das jeweilige Commmand an den uebergebenen
  51.      * Request- und Response-Objekten aus.
  52.      *
  53.      * @access    public
  54.      * @param    Request $req 
  55.      * @param    Response $res 
  56.      */
  57.     public function execute(Request $reqResponse $res);
  58. }

Documentation generated on Sun, 02 Aug 2009 17:14:51 +0200 by phpDocumentor 1.4.2