MediaWiki  1.32.5
ReplaceText.php File Reference

Go to the source code of this file.

Variables

 $wgAutoloadClasses ['ReplaceTextHooks'] = __DIR__ . '/src/ReplaceTextHooks.php'
 
 $wgAutoloadClasses ['ReplaceTextJob'] = __DIR__ . '/src/ReplaceTextJob.php'
 
 $wgAutoloadClasses ['ReplaceTextSearch'] = __DIR__ . '/src/ReplaceTextSearch.php'
 
 $wgAutoloadClasses ['SpecialReplaceText'] = __DIR__ . '/src/SpecialReplaceText.php'
 
 $wgAvailableRights [] = 'replacetext'
 
 $wgExtensionCredits ['specialpage'][]
 
 $wgExtensionMessagesFiles ['ReplaceTextAlias'] = __DIR__ . '/ReplaceText.i18n.alias.php'
 
 $wgGroupPermissions ['sysop']['replacetext'] = true
 
 $wgHooks ['AdminLinks'][] = 'ReplaceTextHooks::addToAdminLinks'
 
 $wgJobClasses ['replaceText'] = 'ReplaceTextJob'
 
 $wgMessagesDirs ['ReplaceText'] = __DIR__ . '/i18n'
 
 $wgReplaceTextUser = null
 
 $wgResourceModules ['ext.ReplaceText']
 
 $wgSpecialPages ['ReplaceText'] = 'SpecialReplaceText'
 
const REPLACE_TEXT_VERSION (!defined( 'MEDIAWIKI')) '1.4.1'
 Replace Text - a MediaWiki extension that provides a special page to allow administrators to do a global string find-and-replace on all the content pages of a wiki. More...
 

Variable Documentation

◆ $wgAutoloadClasses [1/4]

◆ $wgAutoloadClasses [2/4]

$wgAutoloadClasses[ 'ReplaceTextJob'] = __DIR__ . '/src/ReplaceTextJob.php'

Definition at line 63 of file ReplaceText.php.

◆ $wgAutoloadClasses [3/4]

$wgAutoloadClasses[ 'ReplaceTextSearch'] = __DIR__ . '/src/ReplaceTextSearch.php'

Definition at line 64 of file ReplaceText.php.

◆ $wgAutoloadClasses [4/4]

$wgAutoloadClasses[ 'SpecialReplaceText'] = __DIR__ . '/src/SpecialReplaceText.php'

Definition at line 62 of file ReplaceText.php.

◆ $wgAvailableRights

$wgAvailableRights[] = 'replacetext'

Definition at line 55 of file ReplaceText.php.

Referenced by User\getAllRights().

◆ $wgExtensionCredits

$wgExtensionCredits[ 'specialpage'][]
Initial value:
= [
'path' => __FILE__,
'name' => 'Replace Text',
'version' => REPLACE_TEXT_VERSION,
'author' => [ 'Yaron Koren', 'Niklas Laxström', '...' ],
'url' => 'https:
'descriptionmsg' => 'replacetext-desc',
'license-name' => 'GPL-2.0-or-later'
]

Definition at line 40 of file ReplaceText.php.

Referenced by HHVMMakeRepo\execute(), SpecialVersion\execute(), SpecialVersion\getExtensionCategory(), SpecialVersion\getExtensionCredits(), and SpecialVersion\getSkinCredits().

◆ $wgExtensionMessagesFiles

$wgExtensionMessagesFiles[ 'ReplaceTextAlias'] = __DIR__ . '/ReplaceText.i18n.alias.php'

Definition at line 51 of file ReplaceText.php.

◆ $wgGroupPermissions

◆ $wgHooks

$wgHooks[ 'AdminLinks'][] = 'ReplaceTextHooks::addToAdminLinks'

Definition at line 58 of file ReplaceText.php.

◆ $wgJobClasses

$wgJobClasses[ 'replaceText'] = 'ReplaceTextJob'

◆ $wgMessagesDirs

$wgMessagesDirs[ 'ReplaceText'] = __DIR__ . '/i18n'

Definition at line 50 of file ReplaceText.php.

Referenced by UpdateMediaWiki\execute().

◆ $wgReplaceTextUser

$wgReplaceTextUser = null

◆ $wgResourceModules

$wgResourceModules[ 'ext.ReplaceText']
Initial value:
= [
'scripts' => 'ext.ReplaceText.js',
'localBasePath' => 'resources',
'remoteExtPath' => 'ReplaceText/resources',
]

Definition at line 66 of file ReplaceText.php.

◆ $wgSpecialPages

$wgSpecialPages[ 'ReplaceText'] = 'SpecialReplaceText'

Definition at line 60 of file ReplaceText.php.

◆ REPLACE_TEXT_VERSION

const REPLACE_TEXT_VERSION(!defined('MEDIAWIKI')) '1.4.1'

Replace Text - a MediaWiki extension that provides a special page to allow administrators to do a global string find-and-replace on all the content pages of a wiki.

https://www.mediawiki.org/wiki/Extension:Replace_Text

The special page created is 'Special:ReplaceText', and it provides a form to do a global search-and-replace, with the changes to every page showing up as a wiki edit, with the administrator who performed the replacement as the user, and an edit summary that looks like "Text replace: 'search string' * to 'replacement string'".

If the replacement string is blank, or is already found in the wiki, the page provides a warning prompt to the user before doing the replacement, since it is not easily reversible.

Definition at line 37 of file ReplaceText.php.

later
If you want to remove the page from your watchlist later
Definition: All_system_messages.txt:361
name
and how to run hooks for an and one after Each event has a name
Definition: hooks.txt:6
REPLACE_TEXT_VERSION
const REPLACE_TEXT_VERSION(!defined( 'MEDIAWIKI'))
Replace Text - a MediaWiki extension that provides a special page to allow administrators to do a glo...
Definition: ReplaceText.php:37
or
or
Definition: COPYING.txt:140