MediaWiki fundraising/REL1_35
|
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 | |
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. | |
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 47 of file CheckMatrixWidget.php.
References MediaWiki\Widget\CheckMatrixWidget\getCellTag(), and MediaWiki\Widget\CheckMatrixWidget\getTableRow().
|
private |
Get an individual cell tag with requested content.
mixed | $content | Content for the |
cell
string | $tagElement |
Definition at line 142 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 193 of file CheckMatrixWidget.php.
References MediaWiki\Widget\CheckMatrixWidget\$columns, 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 189 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 185 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 155 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 169 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().