aboutsummaryrefslogtreecommitdiffstats
path: root/includes/widget/CheckMatrixWidget.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactor widget classes to use cleaner namespacingDogu2024-01-021-15/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch refactors various widget classes in the includes/widget directory to use cleaner namespacing. The patches remove redundant backslash prefixes in class extending statements and add use statements for OOUI classes and other MediaWiki-specific classes. This patch improves readability and maintainability of the code by following the MediaWiki coding conventions and leverages the benefits of PHP's namespacing system. List of affected classes: - CheckMatrixWidget - DateInputWidget - DateTimeInputWidget - NamespaceInputWidget - SearchInputWidget - SelectWithInputWidget - SizeFilterWidget - SpinnerWidget - TagMultiselectWidget - TitleInputWidget - UserInputWidget Additionally, the code now correctly documents exceptions thrown by constructors where missing, enforcing clearer developer expectations. Change-Id: I0fdaf68a412a1c3b7049a79222f4dbeaa95a6bbc
* htmlform: Support HTML tooltips in checkmatrixGergő Tisza2023-11-061-1/+12
| | | | | | Bug: T290790 Bug: T254222 Change-Id: I69e8217c408acca6bd7f19e7e274b255336dccd2
* Remove some more comments that literally repeat the codeThiemo Kreuz2021-12-091-2/+2
| | | | | | | | Nothing to learn from these. You can find a longer explanation in the comments in I93751e6. Change-Id: I195aae70fc282b58be5b18160783f27d38605d15
* Improve param docsUmherirrender2019-11-281-8/+9
| | | | Change-Id: I746a69f6ed01c3ff000da125457df62b02d13b34
* widget: Improve properties documentationDaimona Eaytoy2019-09-101-8/+16
| | | | | | | | Explicitly declare all dynamic properties. Add docblocks for several props. Remove the defaults when they're already set in the constructor. Make TagMultiselectWidget use ?? like other widgets. Change-Id: I889bf6f9e1bbe381f5bffb8ce1370c9e2e863520
* Remove comments documenting constructors as "constructors"Thiemo Kreuz2019-01-081-2/+0
| | | | | | | Such comments are cruft and do not add anything that's not already obvious from the code. Change-Id: I42068b0c6c904bc4ee38f1700e0ea14c3d659a25
* HTMLCheckMatrix/CheckMatrixWidget: Adding `th` to `thead`Volker E2018-11-161-3/+3
| | | | | | Improving semantics, which also reflects in screen readers. Change-Id: I552a61a6e1892ebed86d9434366bd932f6f7a602
* CheckMatrixWidget: Re-instate HTMLForm CheckMatrix stylingVolker E2018-11-161-2/+8
| | | | | | | Adding `tbody` with extra class and add additional `thead`. Bug: T209667 Change-Id: I3f707f667df11e9bfd5ce1fcc51ccde0cd12e9be
* HTMLCheckMatrix: Treat row/column labels as HTML in OOUI modeBartosz Dziewoński2018-09-031-11/+9
| | | | | | | | | | 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-18/+9
| | | | | | A few issues have snuck in since I33b421c8cb11cdd4ce896488c9ff5313f03a38cf. Change-Id: Ib75470a7a3c19e2d48f498b396eee6ed733690e4
* OOUIfy CheckMatrix in PHP and JSMoriel Schottlender2018-08-221-0/+204
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