home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / HTML / QuickForm / Action.php next >
Encoding:
PHP Script  |  2008-07-02  |  1.8 KB  |  56 lines

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3.  
  4. /**
  5.  * Class representing an action to perform on HTTP request.
  6.  * 
  7.  * PHP versions 4 and 5
  8.  *
  9.  * LICENSE: This source file is subject to version 3.01 of the PHP license
  10.  * that is available through the world-wide-web at the following URI:
  11.  * http://www.php.net/license/3_01.txt If you did not receive a copy of
  12.  * the PHP License and are unable to obtain it through the web, please
  13.  * send a note to license@php.net so we can mail you a copy immediately.
  14.  *
  15.  * @category    HTML
  16.  * @package     HTML_QuickForm_Controller
  17.  * @author      Alexey Borzov <avb@php.net>
  18.  * @copyright   2003-2007 The PHP Group
  19.  * @license     http://www.php.net/license/3_01.txt PHP License 3.01
  20.  * @version     CVS: $Id: Action.php,v 1.3 2007/05/18 09:34:18 avb Exp $
  21.  * @link        http://pear.php.net/package/HTML_QuickForm_Controller
  22.  */
  23.  
  24. /**
  25.  * Class representing an action to perform on HTTP request. 
  26.  * 
  27.  * The Controller will select the appropriate Action to call on the request and
  28.  * call its perform() method. The subclasses of this class should implement all 
  29.  * the necessary business logic.
  30.  *
  31.  * @category    HTML
  32.  * @package     HTML_QuickForm_Controller
  33.  * @author      Alexey Borzov <avb@php.net>
  34.  * @version     Release: 1.0.8
  35.  * @abstract
  36.  */
  37. class HTML_QuickForm_Action
  38. {
  39.    /**
  40.     * Processes the request. This method should be overriden by child classes to
  41.     * provide the necessary logic.
  42.     *
  43.     * @access   public
  44.     * @param    HTML_QuickForm_Page    The current form-page
  45.     * @param    string                 Current action name, as one Action object
  46.     *                                  can serve multiple actions
  47.     * @throws   PEAR_Error
  48.     * @abstract
  49.     */
  50.     function perform(&$page, $actionName)
  51.     {
  52.     }
  53. }
  54.  
  55. ?>
  56.