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'));
Parameters
- $cols
- A list of column headers.
- $rows
- <p>A hash with row IDs as the keys and row
labels as the values.</p>
- $matrix
- <p>A two dimensional hash with the field
values.</p>
- $new_input
- <p>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.</p>
Overrides