wiki.techinc.nl/includes/htmlform/fields/HTMLSubmitField.php
James D. Forrester 59c0aa2134 Namespace HTMLForm and friends
Bug: T353458
Change-Id: I09e66c3223018ec47e0549ee7f6a590b676f4eef
2024-02-14 08:18:33 -05:00

26 lines
610 B
PHP

<?php
namespace MediaWiki\HTMLForm\Field;
/**
* 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 );
}
}
/** @deprecated since 1.42 */
class_alias( HTMLSubmitField::class, 'HTMLSubmitField' );