PHP Class Horde_Form_Type_matrix, horde

Inheritance: extends Horde_Form_Type
Mostrar archivo Open project: horde/horde

Public Properties

Property Type Description
$_cols
$_matrix
$_new_input
$_rows

Public Methods

Method Description
about ( )
getCols ( )
getInfo ( &$vars, &$var, &$info )
getMatrix ( )
getNewInput ( )
getRows ( )
init ( array $cols, array $rows = [], array $matrix = [], boolean | array $new_input = false ) Initializes the variable.
isValid ( &$var, &$vars, $value, &$message )

Method Details

about() public method

public about ( )

getCols() public method

public getCols ( )

getInfo() public method

public getInfo ( &$vars, &$var, &$info )

getMatrix() public method

public getMatrix ( )

getNewInput() public method

public getNewInput ( )

getRows() public method

public getRows ( )

init() public method

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'));
public init ( array $cols, array $rows = [], array $matrix = [], boolean | array $new_input = false )
$cols array A list of column headers.
$rows array A hash with row IDs as the keys and row labels as the values.
$matrix array A two dimensional hash with the field values.
$new_input boolean | array 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.

isValid() public method

public isValid ( &$var, &$vars, $value, &$message )

Property Details

$_cols public_oe property

public $_cols

$_matrix public_oe property

public $_matrix

$_new_input public_oe property

public $_new_input

$_rows public_oe property

public $_rows