MediaWiki REL1_41
MediaWiki\Widget\CheckMatrixWidget Class Reference

Check matrix widget. More...

Inherits OOUI\Widget.

Collaboration diagram for MediaWiki\Widget\CheckMatrixWidget:

Public Member Functions

 __construct (array $config=[])
 Operates similarly to MultiSelectWidget, but instead of using an array of options, uses an array of rows and an array of columns to dynamically construct a matrix of options.
 
 getConfig (&$config)
 

Protected Member Functions

 getJavaScriptClassName ()
 

Protected Attributes

array $columns
 
array $forcedOff
 
array $forcedOn
 
string null $id
 
string null $name
 
array $rows
 
array $tooltips
 
array $values
 

Detailed Description

Check matrix widget.

Displays a matrix of checkboxes for given options

Note
2018 MediaWiki Widgets Team and others; see AUTHORS.txt
MIT

Definition at line 11 of file CheckMatrixWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\CheckMatrixWidget::__construct ( array $config = [])

Operates similarly to MultiSelectWidget, but instead of using an array of options, uses an array of rows and an array of columns to dynamically construct a matrix of options.

The tags used to identify a particular cell are of the form "columnName-rowName"

Parameters
array$configConfiguration array with the following options:
  • columns
    • Required associative array mapping column labels (as HTML) to their tags.
  • rows
    • Required associative array mapping row labels (as HTML) to their tags.
  • force-options-on
    • Array of column-row tags to be displayed as enabled but unavailable to change.
  • force-options-off
    • Array of column-row tags to be displayed as disabled but unavailable to change.
  • tooltips
    • Optional associative array mapping row labels to tooltips (as text, will be escaped).

Definition at line 47 of file CheckMatrixWidget.php.

Member Function Documentation

◆ getConfig()

◆ getJavaScriptClassName()

MediaWiki\Widget\CheckMatrixWidget::getJavaScriptClassName ( )
protected

Definition at line 189 of file CheckMatrixWidget.php.

Member Data Documentation

◆ $columns

array MediaWiki\Widget\CheckMatrixWidget::$columns
protected

Definition at line 17 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $forcedOff

array MediaWiki\Widget\CheckMatrixWidget::$forcedOff
protected

Definition at line 27 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $forcedOn

array MediaWiki\Widget\CheckMatrixWidget::$forcedOn
protected

Definition at line 25 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $id

string null MediaWiki\Widget\CheckMatrixWidget::$id
protected

Definition at line 15 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $name

string null MediaWiki\Widget\CheckMatrixWidget::$name
protected

Definition at line 13 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $rows

array MediaWiki\Widget\CheckMatrixWidget::$rows
protected

Definition at line 19 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $tooltips

array MediaWiki\Widget\CheckMatrixWidget::$tooltips
protected

Definition at line 21 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().

◆ $values

array MediaWiki\Widget\CheckMatrixWidget::$values
protected

Definition at line 23 of file CheckMatrixWidget.php.

Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().


The documentation for this class was generated from the following file: