34 parent::__construct(
'Protectedpages' );
40 $this->
getOutput()->addModuleStyles(
'mediawiki.special' );
44 $level =
$request->getVal( $this->IdLevel );
45 $sizetype =
$request->getVal(
'size-mode' );
46 $size =
$request->getIntOrNull(
'size' );
47 $ns =
$request->getIntOrNull(
'namespace' );
49 $filters =
$request->getArray(
'wpfilters', [] );
50 $indefOnly =
in_array(
'indefonly', $filters );
51 $cascadeOnly =
in_array(
'cascadeonly', $filters );
52 $noRedirect =
in_array(
'noredirect', $filters );
77 if ( $pager->getNumRows() ) {
78 $this->
getOutput()->addParserOutputContent( $pager->getFullOutput() );
80 $this->
getOutput()->addWikiMsg(
'protectedpagesempty' );
99 'class' => HTMLSelectNamespace::class,
100 'name' =>
'namespace',
102 'cssclass' =>
'namespaceselector',
104 'label' => $this->
msg(
'namespace' )->text(),
109 'class' =>
'HTMLMultiSelectField',
110 'label' => $this->
msg(
'protectedpages-filters' )->text(),
112 'options-messages' => [
113 'protectedpages-indef' =>
'indefonly',
114 'protectedpages-cascade' =>
'cascadeonly',
115 'protectedpages-noredirect' =>
'noredirect',
117 'default' => $filters,
120 'class' => HTMLSizeFilterField::class,
127 ->setWrapperLegendMsg(
'protectedpages' )
128 ->setSubmitText( $this->
msg(
'protectedpages-submit' )->
text() );
130 return $htmlForm->prepareForm()->getHTML(
false );
143 foreach ( Title::getFilteredRestrictionTypes(
true ) as
$type ) {
145 $text = $this->
msg(
"restriction-$type" )->text();
150 foreach ( $m as $text =>
$type ) {
157 'label' => $this->
msg(
'restriction-type' )->text(),
170 $m = [ $this->
msg(
'restriction-level-all' )->text() => 0 ];
174 foreach ( $this->
getConfig()->
get(
'RestrictionLevels' ) as
$type ) {
177 $text = $this->
msg(
"restriction-level-$type" )->text();
183 foreach ( $m as $text =>
$type ) {
190 'label' => $this->
msg(
'restriction-level' )->text(),
197 return 'maintenance';
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Parent class for all special pages.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getOutput()
Get the OutputPage being used for this instance.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key)
Wrapper around wfMessage that sets the current context.
getConfig()
Shortcut to get main config object.
getRequest()
Get the WebRequest being used for this instance.
A special page that lists protected pages.
showOptions( $namespace, $type, $level, $sizetype, $size, $filters)
getLevelMenu( $pr_level)
Creates the input label of the restriction level.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
getTypeMenu( $pr_type)
Creates the input label of the restriction type.
execute( $par)
Default execute method Checks user permissions.
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
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead & $formDescriptor
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options