MediaWiki master
MediaWiki\HTMLForm Namespace Reference

Namespaces

namespace  Field
 

Classes

class  CodexHTMLForm
 Codex based HTML form. More...
 
class  CollapsibleFieldsetLayout
 
class  HTMLForm
 Object handling generic submission, CSRF protection, layout and other logic for UI forms in a reusable manner. More...
 
class  HTMLFormActionFieldLayout
 
class  HTMLFormField
 The parent class to generate form fields. More...
 
class  HTMLFormFieldLayout
 
class  HTMLFormFieldRequiredOptionsException
 
interface  HTMLNestedFilterable
 
class  OOUIHTMLForm
 Compact stacked vertical format for forms, implemented using OOUI widgets. More...
 
class  VFormHTMLForm
 Compact stacked vertical format for forms. More...
 

Functions

 initializeHTMLFormElement (array $config=[])
 

Variables

 $modules = null
 
trait HTMLFormElement
 Allows custom data specific to HTMLFormField to be set for OOUI forms.
 

Function Documentation

◆ initializeHTMLFormElement()

MediaWiki\HTMLForm\initializeHTMLFormElement ( array $config = [])

Variable Documentation

◆ $modules

MediaWiki::HTMLForm\$modules = null
protected

Definition at line 17 of file HTMLFormElement.php.

◆ HTMLFormElement

trait MediaWiki::HTMLForm\HTMLFormElement
Initial value:
{
protected $condState = null

Allows custom data specific to HTMLFormField to be set for OOUI forms.

A matching JS widget (defined in htmlform.Element.js) picks up the extra config when constructed using OO.ui.infuse().

Currently only supports passing 'hide-if' and 'disable-if' data.

Stability: stable
to extend

Definition at line 14 of file HTMLFormElement.php.