Class Horde_Form_Type_matrix

Description

Horde_Form_Type Class

Located in /Form/Form.php (line 2609)

Horde_Form_Type
   |
   --Horde_Form_Type_matrix
Variable Summary
 mixed $_cols
 mixed $_matrix
 mixed $_new_input
 mixed $_rows
Method Summary
 void about ()
 void getCols ()
 void getInfo ( &$vars,  &$var,  &$info)
 void getMatrix ()
 void getNewInput ()
 void getRows ()
 void init (array $cols, [array $rows = array()], [array $matrix = array()], [boolean|array $new_input = false])
 void isValid ( &$var,  &$vars,  $value,  &$message)
Variables
mixed $_cols (line 2611)
mixed $_matrix (line 2613)
mixed $_new_input (line 2614)
mixed $_rows (line 2612)
Methods
about (line 2668)
void about ()
getCols (line 2651)
void getCols ()
getInfo (line 2656)
void getInfo ( &$vars,  &$var,  &$info)
  • &$vars
  • &$var
  • &$info

Redefinition of:
Horde_Form_Type::getInfo()
getMatrix (line 2653)
void getMatrix ()
getNewInput (line 2654)
void getNewInput ()
getRows (line 2652)
void getRows ()
init (line 2638)

Initializes the variable.

Example:

  1.  init(array('Column A''Column B'),
  2.       array(=> 'Row One'=> 'Row 2'=> 'Row 3'),
  3.       array(array(truetruefalse),
  4.             array(truefalsetrue),
  5.             array(fasletruefalse)),
  6.       array('Row 4''Row 5'));

void init (array $cols, [array $rows = array()], [array $matrix = array()], [boolean|array $new_input = false])
  • 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.

Redefinition of:
Horde_Form_Type::init()
isValid (line 2646)
void isValid ( &$var,  &$vars,  $value,  &$message)
  • &$var
  • &$vars
  • $value
  • &$message

Redefinition of:
Horde_Form_Type::isValid()

Inherited Methods

Inherited From Horde_Form_Type

 Horde_Form_Type::Horde_Form_Type()
 Horde_Form_Type::getInfo()
 Horde_Form_Type::getProperty()
 Horde_Form_Type::getTypeName()
 Horde_Form_Type::getValues()
 Horde_Form_Type::init()
 Horde_Form_Type::isValid()
 Horde_Form_Type::onSubmit()
 Horde_Form_Type::setProperty()
 Horde_Form_Type::__get()
 Horde_Form_Type::__set()

Documentation generated on Sun, 30 Jan 2011 05:17:30 +0000 by phpDocumentor 1.4.3