Manual:FetchText.php/de
MediaWiki Version: | ≥ 1.12 |
MediaWiki-Datei: fetchText.php | |
---|---|
Speicherort: | maintenance/ |
Quellcode: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Klassen: | FetchText |
Details
fetchText.php file is a maintenance script to fetch a particular revision text from an old_id
.
This is used by dumpTextPass.php when the --spawn
option is present.
Optionen/Argumente
Dieses Skript nimmt keine Optionen oder Argumente an, da es ein Interaktives Skript ist.
Verwendung
php maintenance/run.php fetchText
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.Provide a text id (old_id
from the text
table) or an external storage URL followed by a newline, and the script will output a string containing the following in order:
- The ID or URL provided
- length of text (-1 on error = failure to retrieve/unserialize/gunzip/etc)
- text (may be empty)
{{#parsoid\0fragment:0}}
Since revisions can be deleted without the actual revision text being removed, this script can also return text that is no longer associated with any revision at all (it may be a current, historic or deleted revision).