aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content/FileContentHandler.php
Commit message (Collapse)AuthorAgeFilesLines
* Namespace all remaining files in includes/pageJames D. Forrester2025-03-181-1/+1
| | | | | Bug: T353458 Change-Id: I7a9c74f2106655d41ae029742090253f541bd4a6
* content: Improve class docs for various Content classesTimo Tijhof2025-03-121-1/+4
| | | | | | | | | | | | | * Move duplicate brief and ingroup from file doc to class doc. <https://gerrit.wikimedia.org/r/q/message:ingroup+owner:Krinkle> * Ensure methods have an understable brief, separate from other text. <https://www.mediawiki.org/wiki/Manual:Coding_conventions/Documentation> * Remove obsolete `todo` comments. Bug: T364652 Change-Id: I6eebbf20775e73d008ef86c592a7128456abcb06
* Fix some typosMatěj Suchánek2024-08-181-1/+1
| | | | Change-Id: I1a41f33c65bc9edf2df248581a2c45c5c79c4f93
* Add namespace to FileContentHandlerEbrahim Byagowi2024-08-071-1/+8
| | | | | | It adds MediaWiki\Content namespace to FileContentHandler Change-Id: I2db36de12a60c78524ea6ee2d8866ff901a48cac
* Add namespace to WikitextContentEbrahim Byagowi2024-08-061-0/+1
| | | | | | | It adds MediaWiki\Content namespace to WikitextContent and two classes related. Change-Id: Ib74e4c5b3edac6aa0e35d3b2093ce1d0b794cb6d
* Namespace ParserOutputJames D. Forrester2023-12-141-0/+1
| | | | | | | Most used non-namespaced class! Bug: T353458 Change-Id: I4c2cbb0a808b3881a4d6ca489eee5d8c8ebf26cf
* search: Set file_text to null when not availableErik Bernhardson2022-12-021-1/+4
| | | | | | | | | | | | | | | | file_text has previously been set to false or an empty array, depending on context, when it wasn't available. As part of normalizing the set of types used in the search index default the value to null and only set it if the media handler is able to extract text content from it. Setting the value to null when not available is done to clear out historical false/empty array values in storage. Perhaps we need to think more in the future about if/when default values should be provided to search updates, everything is a bit ad-hoc today. Bug: T322327 Change-Id: I1367154b17d9e69c9373e7efee384838aa3b51e8
* Make the doc building for search aware of the revisionDavid Causse2022-10-251-1/+3
| | | | | | | | | | | | | | | | | Added an optional RevisionRecord param to: - ContentHandler::getParserOutputForIndexing - ContentHandler::getDataForSearchIndex - the SearchDataForIndex hook So that they have a chance to build the content related to a specific revision. Ultimately we'd like to make this parameter mandatory. Bug: T317309 Depends-On: I8b220cd6c4aeeca1d924bdd527409b8602318944 Depends-On: I8616b611caab3f5fa97ff0e655b19c3034304597 Change-Id: I3298ce7591069eb32f624b2c9fbb6de58ae04a29
* Unsuppress more phan issues (part 5)Daimona Eaytoy2019-09-011-0/+1
| | | | | | Bug: T231636 Depends-On: I6e5fba7bd273219b1206559420b5bdb78734aa84 Change-Id: I50377746f01749b058c39fd8229f9d566224cc43
* Replace some uses of deprecated wfFindFile() and wfLocalFile()Derick Alangi2019-06-111-1/+4
| | | | | | | | | | | | | | | | | | | | | These global functions were deprecated in 1.34 and services made available to replace them. See services below; * wfFindFile() - MediaWikiServices::getInstance()->getRepoGroup()->findFile() * wfLocalFind() - MediaWikiServices::getInstance()->getRepoGroup()->getLocalRepo()->newFile() NOTES: * wfFindFile() and wfLocalFind() usages in tests have been ignored in this change per @Timo's comments about state of objects. * includes/upload/UploadBase.php also maintained for now as it causes some failures I don't fully understand, will investigate and handle it in a follow up patch. * Also, includes/MovePage.php Change-Id: I9437494de003f40fbe591321da7b42d16bb732d6
* Fix php code stylePaladox2017-05-051-1/+1
| | | | | | Preparation change for updating mediawiki code sniffer to 0.8.0 Change-Id: Ib0b3fe4afea9096ffa3a1347b4f7e07d3398b0b2
* Miscellaneous indentation tweaksBartosz Dziewoński2017-02-271-2/+5
| | | | | | | | | | I was bored. What? Don't look at me that way. I mostly targetted mixed tabs and spaces, but others were not spared. Note that some of the whitespace changes are inside HTML output, extended regexps or SQL snippets. Change-Id: Ie206cc946459f6befcfc2d520e35ad3ea3c0f1e0
* Create fields & data for image/file data indexingStanislav Malyshev2016-09-261-0/+62
Bug: T145558 Change-Id: I23d4c8235d0e4150eefec31cea4b2cfdd32bf32a