Source for file form.php

Documentation is available at form.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Libraries
  4.  * @subpackage  HTML
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Utility class for form elements
  14.  *
  15.  * @package     Joomla.Libraries
  16.  * @subpackage  HTML
  17.  * @since       1.5
  18.  */
  19. abstract class JHtmlForm
  20. {
  21.     /**
  22.      * Displays a hidden token field to reduce the risk of CSRF exploits
  23.      *
  24.      * Use in conjunction with JSession::checkToken()
  25.      *
  26.      * @return  string  A hidden input field with a token
  27.      *
  28.      * @see     JSession::checkToken()
  29.      * @since   1.5
  30.      */
  31.     public static function token()
  32.     {
  33.         return '<input type="hidden" name="' JSession::getFormToken('" value="1" />';
  34.     }
  35. }

Documentation generated on Tue, 19 Nov 2013 15:03:30 +0100 by phpDocumentor 1.4.3