$_cols
$_cols :
Horde_Form_Type Class
init(array $cols, array $rows = array(), array $matrix = array(), boolean|array $new_input = false)
Initializes the variable.
Example:
init(array('Column A', 'Column B'),
array(1 => 'Row One', 2 => 'Row 2', 3 => 'Row 3'),
array(array(true, true, false),
array(true, false, true),
array(fasle, true, false)),
array('Row 4', 'Row 5'));
array | $cols | A list of column headers. |
array | $rows | A hash with row IDs as the keys and row labels as the values. |
array | $matrix | A two dimensional hash with the field values. |
boolean|array | $new_input | If true, a free text field to add a new row is displayed on the top, a select box if this parameter is a value. |