MediaWiki
1.34.0
HTMLSubmitField.php
Go to the documentation of this file.
1
<?php
2
7
class
HTMLSubmitField
extends
HTMLButtonField
{
8
protected
$buttonType
=
'submit'
;
9
10
protected
$mFlags
= [
'primary'
,
'progressive'
];
11
12
public
function
skipLoadData
( $request ) {
13
return
!$request->getCheck( $this->mName );
14
}
15
16
public
function
loadDataFromRequest
( $request ) {
17
return
$request->getCheck( $this->mName );
18
}
19
}
HTMLButtonField
Adds a generic button inline to the form.
Definition:
HTMLButtonField.php:26
HTMLSubmitField
Add a submit button inline in the form (as opposed to HTMLForm::addButton(), which will add it at the...
Definition:
HTMLSubmitField.php:7
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:16
HTMLSubmitField\skipLoadData
skipLoadData( $request)
Skip this field when collecting data.
Definition:
HTMLSubmitField.php:12
HTMLSubmitField\$mFlags
$mFlags
Definition:
HTMLSubmitField.php:10
HTMLSubmitField\$buttonType
$buttonType
Definition:
HTMLSubmitField.php:8
includes
htmlform
fields
HTMLSubmitField.php
Generated on Thu Dec 19 2019 14:54:21 for MediaWiki by
1.8.16