MediaWiki master
HTMLSubmitField.php
Go to the documentation of this file.
1<?php
2
4
13 protected $buttonType = 'submit';
14
16 protected $mFlags = [ 'primary', 'progressive' ];
17
19 public function skipLoadData( $request ) {
20 return !$request->getCheck( $this->mName );
21 }
22
24 public function loadDataFromRequest( $request ) {
25 return $request->getCheck( $this->mName );
26 }
27}
28
30class_alias( HTMLSubmitField::class, 'HTMLSubmitField' );
Adds a generic button inline to the form.
Add a submit button inline in the form (as opposed to HTMLForm::addButton(), which will add it at the...
loadDataFromRequest( $request)
Get the value that this input has been set to from a posted form, or the input's default value if it ...
skipLoadData( $request)
Skip this field when collecting data.to override bool 1.27