[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Refresh link tables. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 321 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file maintenance/Maintenance.php |
RefreshLinks:: (6 methods):
__construct()
execute()
doRefreshLinks()
fixRedirect()
fixLinksFromArticle()
deleteLinksFromNonexistent()
Class: RefreshLinks - X-Ref
Maintenance script to refresh link tables.__construct() X-Ref |
No description |
execute() X-Ref |
No description |
doRefreshLinks( $start, $newOnly = false, $maxLag = false,$end = 0, $redirectsOnly = false, $oldRedirectsOnly = false) X-Ref |
Do the actual link refreshing. param: int $start Page_id to start from param: bool $newOnly Only do pages with 1 edit param: int $maxLag Max DB replication lag param: int $end Page_id to stop at param: bool $redirectsOnly Only fix redirects param: bool $oldRedirectsOnly Only fix redirects without redirect entries |
fixRedirect( $id ) X-Ref |
Update the redirect entry for a given page. This methods bypasses the "redirect" table to get the redirect target, and parses the page's content to fetch it. This allows to be sure that the redirect target is up to date and valid. This is particularly useful when modifying namespaces to be sure the entry in the "redirect" table points to the correct page and not to an invalid one. param: int $id The page ID to check |
fixLinksFromArticle( $id ) X-Ref |
Run LinksUpdate for all links on a given page_id param: int $id The page_id |
deleteLinksFromNonexistent( $maxLag = 0, $batchSize = 100 ) X-Ref |
Removes non-existing links from pages from pagelinks, imagelinks, categorylinks, templatelinks, externallinks, interwikilinks, langlinks and redirect tables. author: Merlijn van Deen <[email protected]> param: int $maxLag param: int $batchSize The size of deletion batches |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |