MediaWiki REL1_32
HTMLSubmitField.php
Go to the documentation of this file.
1<?php
2
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}
Adds a generic button inline to the form.
Add a submit button inline in the form (as opposed to HTMLForm::addButton(), which will add it at the...
loadDataFromRequest( $request)
Get the value that this input has been set to from a posted form, or the input's default value if it ...
skipLoadData( $request)
Skip this field when collecting data.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request
Definition hooks.txt:2880