Merge "tests: Remove duplicate unit tests in HtmlTest.php"
[lhc/web/wiklou.git] / includes / htmlform / HTMLSubmitField.php
index 653c08c..cb98549 100644 (file)
@@ -6,4 +6,14 @@
  */
 class HTMLSubmitField extends HTMLButtonField {
        protected $buttonType = 'submit';
+
+       protected $mFlags = [ 'primary', 'constructive' ];
+
+       public function skipLoadData( $request ) {
+               return !$request->getCheck( $this->mName );
+       }
+
+       public function loadDataFromRequest( $request ) {
+               return $request->getCheck( $this->mName );
+       }
 }