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

Source for file Request.php

Documentation is available at Request.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     RequestResponse
  15.  * @copyright   Copyright (c) 2007 Sven Strittmatter
  16.  */
  17.  
  18. /**
  19.  * Die Schnittstelle Beschreibt ein Client-Request.
  20.  * 
  21.  * Longdesc
  22.  *
  23.  * @todo complete description
  24.  * 
  25.  * @category    MVClasses
  26.  * @package     RequestResponse
  27.  * @copyright     Copyright (c) 2007 Sven Strittmatter
  28.  * @author    "Sven Strittmatter" <ausserirdisch@sven-space.de>
  29.  * @version     1.0
  30.  * @link        http://www.sven-space.de/code/php/MVClasses
  31.  */
  32. interface Request {
  33.     /**
  34.      * Gibt die Parameternamen zurueck.
  35.      *
  36.      * @access     public
  37.      * @return     array 
  38.      */
  39.     public function getParameterNames();
  40.     /**
  41.      * Gibt zurueck ob ein Parameter existiert.
  42.      *
  43.      * @access    public
  44.      * @param    string $name 
  45.      * @return     boolean 
  46.      */
  47.     public function issetParameter($name);
  48.     /**
  49.      * Gibt den Wert eines Parameters zurueck.
  50.      *
  51.      * @access    public
  52.      * @param    string $name 
  53.      * @return     mixed 
  54.      */
  55.     public function getParameter($name);
  56.     /**
  57.      * Gibt einen Headder-Wert zurueck.
  58.      *
  59.      * @access     public
  60.      * @param    string $name 
  61.      * @return     string 
  62.      */
  63.     public function getHeader($name);
  64.     /**
  65.      * Gibt Authentifizierungsdaten zurueck:
  66.      * array(
  67.      *   'username' => "username",
  68.      *   'password' => "password"
  69.      * );
  70.      *
  71.      * @access     public
  72.      * @return     array 
  73.      */
  74.     public function getAuthData();
  75.     /**
  76.      * Gibt die IP-Adresse des Clients zurueck.
  77.      *
  78.      * @access     public
  79.      * @return     string 
  80.      */
  81.     public function getRemoteAddress();
  82. }

Documentation generated on Sun, 02 Aug 2009 17:15:03 +0200 by phpDocumentor 1.4.2