wiki.techinc.nl/includes/htmlform/fields/HTMLSubmitField.php
Nikki Nikkhoui 6b0e9eafe1 HTML Classes stability annotations
Add stability annotations for HTML classes.

Bug: T247862
Change-Id: I4dad7b98213ceceb8c04b24e5d52e6fecadb3538
2020-07-13 14:54:28 +02:00

21 lines
484 B
PHP

<?php
/**
* Add a submit button inline in the form (as opposed to
* HTMLForm::addButton(), which will add it at the end).
*
* @stable to extend
*/
class HTMLSubmitField extends HTMLButtonField {
protected $buttonType = 'submit';
protected $mFlags = [ 'primary', 'progressive' ];
public function skipLoadData( $request ) {
return !$request->getCheck( $this->mName );
}
public function loadDataFromRequest( $request ) {
return $request->getCheck( $this->mName );
}
}