summaryrefslogtreecommitdiff
path: root/www/wiki/includes/htmlform/fields/HTMLSubmitField.php
blob: 0c33ad94e04dc5d563048595f53443ca763e49ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/**
 * Add a submit button inline in the form (as opposed to
 * HTMLForm::addButton(), which will add it at the end).
 */
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 );
	}
}