MediaWiki
master
HTMLSubmitField.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\HTMLForm\Field
;
4
11
class
HTMLSubmitField
extends
HTMLButtonField
{
13
protected
$buttonType
=
'submit'
;
14
16
protected
$mFlags
= [
'primary'
,
'progressive'
];
17
18
public
function
skipLoadData
( $request ) {
19
return
!$request->getCheck( $this->mName );
20
}
21
22
public
function
loadDataFromRequest
( $request ) {
23
return
$request->getCheck( $this->mName );
24
}
25
}
26
28
class_alias( HTMLSubmitField::class,
'HTMLSubmitField'
);
MediaWiki\HTMLForm\Field\HTMLButtonField
Adds a generic button inline to the form.
Definition
HTMLButtonField.php:30
MediaWiki\HTMLForm\Field\HTMLSubmitField
Add a submit button inline in the form (as opposed to HTMLForm::addButton(), which will add it at the...
Definition
HTMLSubmitField.php:11
MediaWiki\HTMLForm\Field\HTMLSubmitField\loadDataFromRequest
loadDataFromRequest( $request)
Get the value that this input has been set to from a posted form, or the input's default value if it ...
Definition
HTMLSubmitField.php:22
MediaWiki\HTMLForm\Field\HTMLSubmitField\skipLoadData
skipLoadData( $request)
Skip this field when collecting data.
Definition
HTMLSubmitField.php:18
MediaWiki\HTMLForm\Field\HTMLSubmitField\$buttonType
$buttonType
Definition
HTMLSubmitField.php:13
MediaWiki\HTMLForm\Field\HTMLSubmitField\$mFlags
$mFlags
Definition
HTMLSubmitField.php:16
MediaWiki\HTMLForm\Field
Definition
HTMLApiField.php:3
includes
htmlform
fields
HTMLSubmitField.php
Generated on Mon Oct 14 2024 19:23:46 for MediaWiki by
1.10.0