Form

Utility class for form elements

abstract
since

1.5

package

Joomla CMS

Methods

csrf

Add CSRF form token to Joomla script options that developers can get it by Javascript.

csrf(string name = 'csrf.token') : void
static
since

3.8.0

Arguments

name

stringThe script option key name.

token

Displays a hidden token field to reduce the risk of CSRF exploits

token(array attribs = array()) : string
static

Use in conjunction with Session::checkToken()

see Session::checkToken()
since

1.5

Arguments

attribs

arrayInput element attributes.

Response

stringA hidden input field with a token

Properties

loaded

Array containing information for loaded files.

static
since

3.8.0

Type(s)

array