wiki.techinc.nl/includes/htmlform/fields/HTMLSubmitField.php
Umherirrender aed646001c htmlform: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: I1f306a3925d6768209a06e70082598b2f70cd319
2024-09-14 11:49:05 +00:00

28 lines
662 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 {
/** @inheritDoc */
protected $buttonType = 'submit';
/** @inheritDoc */
protected $mFlags = [ 'primary', 'progressive' ];
public function skipLoadData( $request ) {
return !$request->getCheck( $this->mName );
}
public function loadDataFromRequest( $request ) {
return $request->getCheck( $this->mName );
}
}
/** @deprecated class alias since 1.42 */
class_alias( HTMLSubmitField::class, 'HTMLSubmitField' );