dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix some issues with Microsoft SQL Server support"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLCheckMatrix.php
diff --git
a/includes/htmlform/HTMLCheckMatrix.php
b/includes/htmlform/HTMLCheckMatrix.php
index
323d2d9
..
606523b
100644
(file)
--- a/
includes/htmlform/HTMLCheckMatrix.php
+++ b/
includes/htmlform/HTMLCheckMatrix.php
@@
-75,21
+75,17
@@
class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable {
* mParams['rows'] is an array with row labels as keys and row tags as values.
* mParams['columns'] is an array with column labels as keys and column tags as values.
*
* mParams['rows'] is an array with row labels as keys and row tags as values.
* mParams['columns'] is an array with column labels as keys and column tags as values.
*
- * @param array $value of the options that should be checked
+ * @param array $value
Array
of the options that should be checked
*
*
- * @return
S
tring
+ * @return
s
tring
*/
function getInputHTML( $value ) {
$html = '';
$tableContents = '';
*/
function getInputHTML( $value ) {
$html = '';
$tableContents = '';
- $attribs = array();
$rows = $this->mParams['rows'];
$columns = $this->mParams['columns'];
$rows = $this->mParams['rows'];
$columns = $this->mParams['columns'];
- // If the disabled param is set, disable all the options
- if ( !empty( $this->mParams['disabled'] ) ) {
- $attribs['disabled'] = 'disabled';
- }
+ $attribs = $this->getAttributes( array( 'disabled', 'tabindex' ) );
// Build the column headers
$headerContents = Html::rawElement( 'td', array(), ' ' );
// Build the column headers
$headerContents = Html::rawElement( 'td', array(), ' ' );
@@
-163,9
+159,9
@@
class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable {
* line above the options in the case of a checkbox matrix, i.e. it's always
* a "vertical-label".
*
* line above the options in the case of a checkbox matrix, i.e. it's always
* a "vertical-label".
*
- * @param string $value
t
he value to set the input to
+ * @param string $value
T
he value to set the input to
*
*
- * @return
String c
omplete HTML table row
+ * @return
string C
omplete HTML table row
*/
function getTableRow( $value ) {
list( $errors, $errorClass ) = $this->getErrorsAndErrorClass( $value );
*/
function getTableRow( $value ) {
list( $errors, $errorClass ) = $this->getErrorsAndErrorClass( $value );
@@
-191,9
+187,9
@@
class HTMLCheckMatrix extends HTMLFormField implements HTMLNestedFilterable {
}
/**
}
/**
- * @param
$request WebR
equest
+ * @param
WebRequest $r
equest
*
*
- * @return
A
rray
+ * @return
a
rray
*/
function loadDataFromRequest( $request ) {
if ( $this->mParent->getMethod() == 'post' ) {
*/
function loadDataFromRequest( $request ) {
if ( $this->mParent->getMethod() == 'post' ) {