aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specialpage/WantedQueryPage.php
Commit message (Collapse)AuthorAgeFilesLines
* Namespace all remaining files in includes/skinJames D. Forrester2025-03-251-1/+1
| | | | | Bug: T353458 Change-Id: I3e829e35c93bcaae75e401b1801bddf93c0b416c
* specials: Improve docs and `@ingroup` tags, fix file headersTimo Tijhof2024-05-151-5/+2
| | | | | | | | | | | | | | | | | | | | * Add relevant `@ingroup` to special pages that belong to a specific component and for which a doc group is already defined (defgroup), e.g. "Upload" for SpecialUpload, "JobQueue" for SpecialRunJobs. * Remove duplicate descriptions from file blocks in favour of class doc blocks. This reduces needless duplication and was often incorrect or outdated, and helps make file headers more consistently (visually) ignorable. Add missing `ingroup` to class blocks (and remove any from file blocks) as otherwise the file is indexed twice (e.g. in Doxygen) which makes navigation on doc.wikimedia.org rather messy. Ref https://gerrit.wikimedia.org/r/q/message:ingroup+is:merged Bug: T364652 Change-Id: I795c43b6d72782d457c963e352d7e1b022c2b641
* Standardise all our class alias deprecation comments for ease of greppingJames D. Forrester2024-03-191-4/+1
| | | | Change-Id: I7f85d931d3b79da23e87b4e5692b2e14be8fcaa0
* Namespace remaining 'specialpage' files under \MediaWiki\SpecialPageJames D. Forrester2023-09-181-0/+10
| | | | | | | SpecialPageFactory is already here, but none of the others were yet. Bug: T166010 Change-Id: I9689bf0a1ab329625e23669b99f019b96295fffd
* Reorg: Namespace the Title classJames D. Forrester2023-03-021-0/+1
| | | | | | | | | | | | | | | | | | | This is moderately messy. Process was principally: * xargs rg --files-with-matches '^use Title;' | grep 'php$' | \ xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1' * rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \ xargs rg --files-with-matches 'Title\b' | \ xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1' * composer fix Then manual fix-ups for a few files that don't have any use statements. Bug: T166010 Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
* Fix many typos in commentsMatěj Suchánek2022-05-101-1/+1
| | | | | | Found using IntelliJ's "Typo" code inspection. Change-Id: I746220ebe6e1e39f6cb503390ec9053e6518cf16
* Improve documentation about object to be stdClass or specific typeUmherirrender2020-11-201-1/+1
| | | | | | Some classes still needs exclude for the sniff Change-Id: I9536c2ee84f6fb4c83cf862a152cf6b00344cb97
* Improve doc about object to be stdClass in QueryPage::formatResultUmherirrender2020-11-151-1/+1
| | | | Change-Id: Ib1fadd74f2f3223ea8a9343d1524533f00b991df
* Merge "Replace "@stable for subclassing" with "@stable to extend""jenkins-bot2020-07-131-1/+1
|\
| * Replace "@stable for subclassing" with "@stable to extend"daniel2020-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: Ie32c1b11b3d16ddfc0c83a757327d449ff80b2e4
* | Replace "@stable for overriding" with "@stable to override"daniel2020-07-131-7/+7
|/ | | | | | | | | | | For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: I5ffbb91882ecce2019ab644839eab5e8fb8a1c5f
* Mark special page base classes as stable for subclassingdaniel2020-07-101-0/+10
| | | | | Bug: T247862 Change-Id: I44d9dddd99c0106a30058cd80377a65f9b1694a9
* Fix more Squiz.Scope.MethodScope.MissingReedy2020-05-181-6/+6
| | | | | | | | | | | Member variables in HistoryBlobStub have been marked protected SpecialPage::setListed() and listed() have been deprecated CategoryPage::getCategoryViewerClass() and setCategoryViewerClass() have been deprecated Change-Id: Id1f530c2c8ec1171615f726dc7446431ee7ca8fe
* Fix some Squiz.Scope.MethodScope.MissingReedy2020-05-161-1/+1
| | | | Change-Id: I06a663403816e62aa261210538865554cad8eab1
* Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUseJames D. Forrester2020-01-101-1/+1
| | | | Change-Id: I94a0ae83c65e8ee419bbd1ae1e86ab21ed4d8210
* Fixup phan warning toomanyparams (part 2)Daimona Eaytoy2019-10-101-7/+1
| | | | | Bug: T231636 Change-Id: Idde7a766bb0d084d6b67bb0c940d7ad704847ad2
* Make WantedQueryPage::makeWlhLink protectedOstrzyciel2019-08-281-1/+1
| | | | | Bug: T231481 Change-Id: I6ace1bb99879ec8256b29f86220e8fc2e785f593
* Change ResultWrapper to IResultWrapper in pagers and special pagesUmherirrender2018-04-041-2/+2
| | | | | | | There is no need for a specific type, the interface implementation is enough Change-Id: I22ec4d3a9a19fc86efc9a2deb06f810695d38c85
* Improve some parameter docsUmherirrender2017-09-101-0/+1
| | | | | | Add missing @return and @param to function docs and fixed some @param Change-Id: I810727961057cfdcc274428b239af5975c57468d
* Replace Linker::link() with LinkRenderer in special pagesMatěj Suchánek2017-06-201-2/+2
| | | | | Bug: T149346 Change-Id: I2735750803dc1b2e36be3989caaabbf3232b2923
* Move IDatabase/IMaintainableDatabase to Rdbms namespaceAaron Schulz2017-03-281-0/+1
| | | | Change-Id: If7e8a8ff574661fd827de8bcec11d2c39a687300
* Follow-up Improve sorting on SpecialWanted*-PagesEddie Greiner-Petter2017-03-231-0/+33
| | | | | | | | | | | | | | | | | | Change the SpecialWanted*-Pages so that they do sort 1. by the number of links to a site (as is now) and 2. alphabetically for entries which have the same number of links (new) This is a follow-up for commit 5b15728. The previous patch was reverted because using getOrderFields and prefixing each order field with qc_ in fetchFromCache threw DB errors in production. This follow-up differs in introducing a new function getCacheOrderFields that defines order fields only for fetching from the cache and doesn't reuse getOrderFields which is for the raw query (without cache). It returns ['value'] by default and thus keeps the known behaviour. Bug: T4335 Change-Id: Ic01a3c28892c78ba9a9f0a7d665937efe87b44bd
* Revert "Improve sorting on SpecialWanted*-Pages"20after42017-03-151-22/+0
| | | | | | | This reverts commit 5b15728478f9b167389268fb988a7b9f9f78fcf5. The change causes db query errors: DBQueryError: 1054 Unknown column qc_ra.rd_namespace in order clause Change-Id: I068beeae70037c959d42419791911c54ca9908a1
* Improve sorting on SpecialWanted*-PagesEddie Greiner-Petter2017-03-081-0/+22
| | | | | | | | | Change the SpecialWanted*-Pages so that they do sort 1. by the number of links to a site (as is now) and 2. alphabetically for entries which have the same number of links (new) Bug: T4335 Change-Id: If54cd52b69007ee81af4733a14be3fd893c4abfe
* Move ResultWrapper subclasses to RdbmsAaron Schulz2017-03-031-0/+2
| | | | Change-Id: I6f3f0e85e268b24c57c537aa6ad8016e0b4cdddb
* Replace Linker::link() usage with LinkRendererrlot2016-12-021-3/+4
| | | | | | | Replaced deprecated Linker:link() with LinkRenderer Bug: T149346 Change-Id: Iab158d49b186835a14c357c91a1c5c4f78986238
* Move LinkBatch operations for QueryPage to a helper functionFlorian Schmidt2016-10-291-12/+1
| | | | | | | | | This is easier to maintain as duplicated code everywhere. This change also adds LinkBatch operations to specialpages, that does not had it so far, but where it's useful. Change-Id: I4936ecfb2be3a7709d99570c0561ab0cc9cd754f
* Convert all array() syntax to []Kunal Mehta2016-02-171-3/+3
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Always use 'bool' instead of 'boolean' after '@param' and '@return'Ricordisamoa2014-12-101-1/+1
| | | | | | | | | The former is by far the most common. Skipped: * resources/lib/jquery.ui/jquery.ui.datepicker.js * resources/src/mediawiki.special/mediawiki.special.upload.js Change-Id: I73c93797e745128ba703e4865080c36784caa474
* Changed some DatabaseBase type hints to IDatabaseAaron Schulz2014-12-091-1/+1
| | | | Change-Id: I1158c71f110b140473f56d5cbe352da1f4513ad9
* Allow WantedQueryPage subclasses to override the existence checkBrian Wolff2014-09-141-8/+21
| | | | | | | | | Some pages are still "wanted" even if the page exists. For example, consider a page in the file namespace that exists but doesn't have a corresponding file, in the context of special:wantedfiles. Change-Id: Ie40f2baea22b3564e7f06c4fa21bc1efdc0e4d54
* Move QueryPage and abstract subclasses to specialpage folderKevin Israel2014-06-241-0/+117
... now that f508561f7bde ("Moved $wgQueryPages stuff out of the global scope and into a function") has been merged, which eliminated hardcoding of the pathname except in the AutoLoader. WantedQueryPage is moved to a separate file. Bug: 60445 Change-Id: If2019492722083819b82afa6302670b94b181098