Display choice matrix
static public showCheckboxMatrix ( array $columns, array $rows, array $options = [] ) : random | ||
$columns | array | array of column field name => column label |
$rows | array | array of field name => array( 'label' the label of the row 'columns' an array of specific information regaring current row and given column indexed by column field_name * a string if only have to display a string * an array('value' => ???, 'readonly' => ???) that is used to Dropdown::showYesNo() |
$options | array | array possible: 'title' of the matrix 'first_cell' the content of the upper-left cell 'row_check_all' set to true to display a checkbox to check all elements of the row 'col_check_all' set to true to display a checkbox to check all elements of the col 'rand' random number to use for ids |
Résultat | random | value used to generate the ids |