Back to Joomla project (class list)

Class Form - list of methods

Utility class for form elements
Package: Joomla\CMS\HTML\Helpers
Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/HTML/Helpers/Form.php
Project: Joomla

Method Summary

public static string
(array $attribs = array())

Displays a hidden token field to reduce the risk of CSRF exploits
Parameters
  • array $attribs Input element attributes.
Returns
  • string A hidden input field with a token
Since
  • 1.5
-
  • \Joomla\CMS\Session\Session::checkToken()
Show source code of this method: token Source Code

public static void
(mixed $name = 'csrf.token')

Add CSRF form token to Joomla script options that developers can get it by Javascript.
Parameters
  • string $name The script option key name.
Returns
  • void
Since
  • 3.8.0
Show source code of this method: csrf Source Code

Properties Summary

protected static array
$loaded
Array containing information for loaded files.
Since
  • 3.8.0

Tags Summary

Since
1.5