aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLCheckMatrix.php
Commit message (Collapse)AuthorAgeFilesLines
* HTMLCheckMatrix: Set `vertical-label` instead of overriding `getTableRow`Func2024-12-191-45/+3
| | | | Change-Id: I36a5cebb63ef047bcf276553a9f18b62c80f8e88
* Use const keyword for constant list of strings or intsUmherirrender2024-09-111-2/+2
| | | | | | Also changed visiblity of some to private Change-Id: I113b040321d27c84fe9b807c162736909e96fb20
* Add namespace and deprecation alias to FormatJsonEbrahim Byagowi2024-05-161-1/+1
| | | | | | | | | This patch introduces a namespace declaration for the MediaWiki\Json to FormatJson and establishes a class alias marked as deprecated since version 1.43. Bug: T353458 Change-Id: I5e1311e4eb7a878a7db319b725ae262f40671c32
* Add namespace and deprecation alias to Xml and XmlSelectEbrahim Byagowi2024-05-161-1/+1
| | | | | | | | | | This patch introduces a new namespace declaration, MediaWiki\Xml and adds Xml and XmlSelect to it and establishes class aliases marked as deprecated since version 1.43. Bug: T353458 Change-Id: I45cccd540b6e15f267d3ab588a064fbeb719d921
* Standardise all our class alias deprecation comments for ease of greppingJames D. Forrester2024-03-191-1/+1
| | | | Change-Id: I7f85d931d3b79da23e87b4e5692b2e14be8fcaa0
* Namespace HTMLForm and friendsJames D. Forrester2024-02-141-2/+12
| | | | | Bug: T353458 Change-Id: I09e66c3223018ec47e0549ee7f6a590b676f4eef
* Remove uses of $wgUseMediaWikiUIEverywhereBartosz Dziewoński2024-02-041-9/+1
| | | | | | | | | Removing the config variable in a separate change: Ib9966bc6a4a94f771cb99a5aa52fb6a1dc826ca5 (just in case something depends on its existence). Bug: T182050 Change-Id: Ic3e038df16fc540ec7f6bcb9a54d73f8d596d305
* htmlform: Support HTML tooltips in checkmatrixGergő Tisza2023-11-061-0/+5
| | | | | | Bug: T290790 Bug: T254222 Change-Id: I69e8217c408acca6bd7f19e7e274b255336dccd2
* Reorg: Move WebRequest to includes\RequestAmir Sarabadani2023-09-111-0/+1
| | | | | | | This has been approved as part of RFC T166010 Bug: T321882 Change-Id: I6bbdbbe6ea48cc1f50bc568bb8780fc7c5361a6f
* Reorg: Move HTML-related classes out of includes/ to Html/Amir Sarabadani2023-02-161-0/+1
| | | | | Bug: T321882 Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18
* Revert "Reorg: Move some of request related classes to MediaWiki/Request"Zabe2022-10-271-1/+0
| | | | | | | | | This reverts commit 2bdc0b2b7209441a42a784157633a8a01b321922. Reason for revert: T166010#8349431 Bug: T166010 Change-Id: Idcd3025647aec99532f5d69b9c1718c531761283
* Reorg: Move some of request related classes to MediaWiki/RequestAmir Sarabadani2022-10-261-0/+1
| | | | | | | | | | | | | Moving: - DerivativeRequest - FauxRequest - FauxRequestUpload - PathRouter - WebRequest - WebRequestUpload Bug: T166010 Change-Id: I5ea70120d745f2876ae31d039f3f8a51e49e9ad8
* Use short array destructuring instead of list()Tim Starling2022-10-211-1/+1
| | | | | | | | Introduced in PHP 7.1. Because it's shorter and looks nice. I used regex replacement. Change-Id: I0555e199d126cd44501f859cb4589f8bd49694da
* build: Update mediawiki/mediawiki-phan-config to 0.12.0Daimona Eaytoy2022-10-081-1/+0
| | | | | | | | This patch only adds and removes suppressions, which must be done in the same patch as the version bump. Bug: T298571 Change-Id: I4044d4d9ce82b3dae7ba0af85bf04f22cb1dd347
* Use MainConfigNames instead of string literals, #3Aryeh Gregor2022-04-261-1/+3
| | | | | | | | | | | | | This edition brought to you by: grep -ERIn $(grep -o "'[A-Za-z0-9_]*'" includes/MainConfigNames.php | tr "\n" '|' | sed 's/|$/\n/') includes/ I only corrected a fraction of the results provided by that command. I'm submitting the partial patch now so it doesn't bitrot. Bug: T305805 Change-Id: If1918c0b3d88cdf90403921e4310740e206d6962
* phan: Disable scalar_implicit_cast settingUmherirrender2022-03-181-0/+1
| | | | | | | | | Make phan stricter about scalar types by setting scalar_implicit_cast to false (the default in mediawiki-phan-config) Bug: T242536 Bug: T301991 Change-Id: Ia2fe30b17804186571722e728578121c8b75d455
* Add cond-state classes in the server-sideFunc2022-01-071-2/+2
| | | | | | There is only one use case of cond-state classes passed to the client-side, and it can be done more natively. Change-Id: Ib6835bb334bd65c6176f0a5c3881b20265901af9
* Add support for conditional disable fields in HTMLFormFunc2021-12-111-8/+8
| | | | | | | Provide a native method to disable fields in particular condition. Bug: T272302 Change-Id: I8f46dedc2945cf3b7ef5419b0a54534ded8b6d5b
* HTMLFormField: Use non namespaced class name rather than static::classReedy2021-03-191-1/+1
| | | | | Bug: T277414 Change-Id: I9ba76522932147df098abef48b2a076c2aa81aac
* Fix broken PHPDoc comments that don't start with /**Thiemo Kreuz2020-07-231-1/+2
| | | | Change-Id: I8db56ff0f73873864dde260e51adcd729aa74e94
* HTML Classes stability annotationsNikki Nikkhoui2020-07-131-0/+5
| | | | | | | Add stability annotations for HTML classes. Bug: T247862 Change-Id: I4dad7b98213ceceb8c04b24e5d52e6fecadb3538
* Improve various PHP method doc blocksDaimona Eaytoy2019-09-051-1/+0
| | | | | | Follows-up 5eac6d131c2a77d0. Change-Id: I92c9d482fd8693a16b3967e763a4eb40b963c562
* Unsuppress more phan issues (part 3)Daimona Eaytoy2019-08-311-0/+1
| | | | | | Bug: T231636 Depends-On: I78354bf5f0c831108c8f606e50c87cf6bc00d8bd Change-Id: I58e67c2b38389df874438deada4239510d21654f
* Adjust type hints in htmlform related classesUmherirrender2019-07-051-1/+1
| | | | | | | | | The return type of HTMLFormField::loadDataFromRequest to mixed Some sub classes returning arrays or bools, not everytime strings HTMLCheckField is working with arrays, so also allow array on getTableRow Change-Id: I076feea76d8e296f27c8a9fb4cbd9368584ba187
* build: Updating mediawiki/mediawiki-codesniffer to 24.0.0Kunal Mehta2019-02-071-1/+1
| | | | Change-Id: I66b1775b7c1d36076d9ca78cbeb42787a743f2aa
* HTMLCheckMatrix/CheckMatrixWidget: Adding `th` to `thead`Volker E2018-11-161-2/+3
| | | | | | Improving semantics, which also reflects in screen readers. Change-Id: I552a61a6e1892ebed86d9434366bd932f6f7a602
* HTMLCheckMatrix: Treat row/column labels as HTML in OOUI modeBartosz Dziewoński2018-09-031-7/+8
| | | | | | | | | | We were incorrectly escaping them. They are supposed to be already correctly escaped HTML. Also improve documentation and really allow 'tooltips' to be optional. Bug: T203325 Change-Id: I1f92479bf1989e1529b18b8b206b61db1257eb87
* Use PHP 7 '??' operator instead of '?:' (round 2)Bartosz Dziewoński2018-09-031-4/+2
| | | | | | A few issues have snuck in since I33b421c8cb11cdd4ce896488c9ff5313f03a38cf. Change-Id: Ib75470a7a3c19e2d48f498b396eee6ed733690e4
* OOUIfy CheckMatrix in PHP and JSMoriel Schottlender2018-08-221-18/+37
| | | | | | | | | | This is to make sure that the design is similar, but also so that the widget can be read in JS where needed and that we can toggle the disabled state on/off through the whole widget, that is made from a series of checkbox widgets. Bug: T199946 Change-Id: I9943b0aa1746fdfb60c7d4c88d6d4d7ac0589a2c
* Use \u{00A0} instead of   or  Fomafix2018-06-241-1/+1
| | | | | | | | | | | | | Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0) instead of the HTML/XML entities   or   or  . With the UTF-8 character the generated HTML is shorter and better to read. Also change the special value for the label in HTMLForm from   to U+00A0 but also support   for backward compability. Bug: T154300 Change-Id: I882599ac1120789bb4e524c4394870680caca4f4
* Use PHP 7 '??' operator instead of if-then-elseFomafix2018-06-121-5/+1
| | | | Change-Id: I790b86e2e9e3e41386144637659516a4bfca1cfe
* Fix tooltip accessibility for screen readersDavid Sn2017-12-161-0/+1
| | | | | | | | | | | | | | By adding an additional aria-label attribute to the tooltip, we can ensure that every tooltip will be accessible for accessibility tools like screen readers. Works with Echo extension, but I am not sure if there are extensions who are using the original-title attribute. Tested with ChromeVox on Chrome 62.0.3202.94. Bug: T54711 Change-Id: I19500c4e8ccbdcb8288b9c2299a29b3f8a31639d
* Add classes to HTMLCheckMatrix items to identify forced onesSam Wilson2017-09-191-0/+2
| | | | | | | | | | Some items in an HTMLCheckMatrix form field can be forced to be on or off, in which case they're disabled. This adds three new class names, so that (for example) Javascript can identify these checkboxes. There are not currently any classes assigned to them. Bug: T172585 Change-Id: I984020ce2437effb3ff5f186470105fd80d4a00f
* Clean up remaining get_class() usesTimo Tijhof2017-03-071-1/+1
| | | | | | | | * get_class() -> __CLASS__ (same as self::class) * get_called_class() -> static::class * get_class($this) -> static::class Change-Id: I1888a1897ecf4548a2e5a67a942e5c080dd7e3d3
* HTMLForm: Allow returning Message objects from HTMLFormField::validate()Brad Jorsch2016-11-141-1/+1
| | | | | | | It mostly already worked. HTMLForm::trySubmit() needed a little adjustment to handle things properly. Change-Id: Ibb17bb61ac0b2d41953249980bc2f23b8a3ae5b6
* Add access modifiers to htmlform classesaddshore2016-11-041-6/+6
| | | | Change-Id: Id8c0f0676b3200993af3cec493efc99839211bcc
* Move HTMLFormField subclasses to a separate directoryBartosz Dziewoński2016-08-011-0/+266
It's getting more difficult to navigate the files in includes/htmlform/ with every new field and every new helper class that is being added. Change-Id: I92ce2356baf6151f17b2440970d5abdf86503820