MediaWiki REL1_33
|
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. | |
getConfig (&$config) | |
Protected Member Functions | |
getJavaScriptClassName () | |
Protected Attributes | |
$columns = [] | |
$forcedOff = [] | |
$forcedOn = [] | |
$name = '' | |
$rows = [] | |
$tooltips = [] | |
$values = [] | |
Private Member Functions | |
getCellTag ( $content, $tagElement='td') | |
Get an individual cell tag with requested content. | |
getTableRow ( $label, $tag) | |
Get a formatted table row for the option, with a checkbox widget. | |
getTooltip ( $label) | |
Get the tooltip help associated with this row. | |
isTagChecked ( $tagName) | |
Check whether the given tag's checkbox should be checked. | |
isTagDisabled ( $tagName) | |
Check whether the given tag's checkbox should be disabled. | |
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 39 of file CheckMatrixWidget.php.
References as, MediaWiki\Widget\CheckMatrixWidget\getCellTag(), MediaWiki\Widget\CheckMatrixWidget\getTableRow(), name, and values.
|
private |
Get an individual cell tag with requested content.
mixed | $content | Content for the |
cell
Definition at line 133 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 184 of file CheckMatrixWidget.php.
References MediaWiki\Widget\CheckMatrixWidget\$columns, MediaWiki\Widget\CheckMatrixWidget\$forcedOff, MediaWiki\Widget\CheckMatrixWidget\$forcedOn, MediaWiki\Widget\CheckMatrixWidget\$name, MediaWiki\Widget\CheckMatrixWidget\$rows, MediaWiki\Widget\CheckMatrixWidget\$tooltips, and MediaWiki\Widget\CheckMatrixWidget\$values.
|
protected |
Definition at line 180 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 95 of file CheckMatrixWidget.php.
References as, MediaWiki\Widget\CheckMatrixWidget\getCellTag(), MediaWiki\Widget\CheckMatrixWidget\getTooltip(), MediaWiki\Widget\CheckMatrixWidget\isTagChecked(), MediaWiki\Widget\CheckMatrixWidget\isTagDisabled(), and name.
Referenced by MediaWiki\Widget\CheckMatrixWidget\__construct().
|
private |
Get the tooltip help associated with this row.
string | $label | Label name |
Definition at line 176 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 146 of file CheckMatrixWidget.php.
References array(), and values.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
private |
Check whether the given tag's checkbox should be disabled.
string | $tagName | Tag name |
Definition at line 160 of file CheckMatrixWidget.php.
References array().
Referenced by MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
protected |
Definition at line 14 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 18 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 15 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 16 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().
|
protected |
Definition at line 17 of file CheckMatrixWidget.php.
Referenced by MediaWiki\Widget\CheckMatrixWidget\getConfig().