Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git] / includes / htmlform / fields / HTMLSubmitField.php
1 <?php
2
3 /**
4 * Add a submit button inline in the form (as opposed to
5 * HTMLForm::addButton(), which will add it at the end).
6 */
7 class HTMLSubmitField extends HTMLButtonField {
8 protected $buttonType = 'submit';
9
10 protected $mFlags = [ 'primary', 'progressive' ];
11
12 public function skipLoadData( $request ) {
13 return !$request->getCheck( $this->mName );
14 }
15
16 public function loadDataFromRequest( $request ) {
17 return $request->getCheck( $this->mName );
18 }
19 }