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