MediaWiki
1.34.0
|
Check matrix widget. More...
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. More... | |
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 |
Private Member Functions | |
getCellTag ( $content, $tagElement='td') | |
Get an individual cell tag with requested content. More... | |
getTableRow ( $label, $tag) | |
Get a formatted table row for the option, with a checkbox widget. More... | |
getTooltip ( $label) | |
Get the tooltip help associated with this row. More... | |
isTagChecked ( $tagName) | |
Check whether the given tag's checkbox should be checked. More... | |
isTagDisabled ( $tagName) | |
Check whether the given tag's checkbox should be disabled. More... | |
Check matrix widget.
Displays a matrix of checkboxes for given options
Definition at line 11 of file CheckMatrixWidget.php.
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"
array | $config | Configuration array with the following options:
|
Definition at line 47 of file CheckMatrixWidget.php.
References MediaWiki\$config, MediaWiki\Widget\CheckMatrixWidget\getCellTag(), and MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
private |
Get an individual cell tag with requested content.
mixed | $content | Content for the |
cell
Definition at line 141 of file CheckMatrixWidget.php.
References $content.
Referenced by MediaWiki\Widget\CheckMatrixWidget\__construct(), and MediaWiki\Widget\CheckMatrixWidget\getTableRow().
MediaWiki\Widget\CheckMatrixWidget::getConfig | ( | & | $config | ) |
Definition at line 192 of file CheckMatrixWidget.php.
References MediaWiki\Widget\CheckMatrixWidget\$columns, MediaWiki\$config, MediaWiki\Widget\CheckMatrixWidget\$forcedOff, MediaWiki\Widget\CheckMatrixWidget\$forcedOn, MediaWiki\Widget\CheckMatrixWidget\$id, MediaWiki\Widget\CheckMatrixWidget\$name, MediaWiki\Widget\CheckMatrixWidget\$rows, MediaWiki\Widget\CheckMatrixWidget\$tooltips, and MediaWiki\Widget\CheckMatrixWidget\$values.
|
protected |
Definition at line 188 of file CheckMatrixWidget.php.
|
private |
Get a formatted table row for the option, with a checkbox widget.
string | $label | Row label (as HTML) |
string | $tag | Row tag name |
Definition at line 103 of file CheckMatrixWidget.php.
References MediaWiki\Widget\CheckMatrixWidget\getCellTag(), MediaWiki\Widget\CheckMatrixWidget\getTooltip(), MediaWiki\Widget\CheckMatrixWidget\isTagChecked(), and MediaWiki\Widget\CheckMatrixWidget\isTagDisabled().
Referenced by MediaWiki\Widget\CheckMatrixWidget\__construct().
|
private |
Get the tooltip help associated with this row.
string | $label | Label name |
Definition at line 184 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
private |
Check whether the given tag's checkbox should be checked.
string | $tagName | Tag name |
Definition at line 154 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
private |
Check whether the given tag's checkbox should be disabled.
string | $tagName | Tag name |
Definition at line 168 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
protected |
Definition at line 17 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 27 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 25 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 15 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 13 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 19 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 21 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 23 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().