[ class tree: HTML_QuickForm2 ] [ index: HTML_QuickForm2 ] [ all elements ]

Class: HTML_QuickForm2_Element_Select_Optgroup

Source Location: /HTML_QuickForm2-2.0.2/HTML/QuickForm2/Element/Select.php

Class Overview


Class representing an <optgroup> tag



  • Release: 2.0.2


Inherited Variables

Inherited Methods

Class Details

[line 235]
Class representing an <optgroup> tag

Do not instantiate this class yourself, use HTML_QuickForm2_Element_Select::addOptgroup() method

[ Top ]

Method Detail

__construct (Constructor)   [line 247]

HTML_QuickForm2_Element_Select_Optgroup __construct( array &$values, array &$possibleValues, string $label, [string|array $attributes = null])

Class constructor
  • Access: public

Overrides HTML_QuickForm2_Element_Select_OptionContainer::__construct() (Class constructor)


array   &$values   —  Reference to values of parent <select> element
array   &$possibleValues   —  Reference to possible values of parent <select> element
string   $label   —  'label' attribute for optgroup tag
string|array   $attributes   —  Additional attributes for <optgroup> tag (either as a string or as an associative array)

[ Top ]

__toString   [line 254]

void __toString( )

  • Access: public

Overrides HTML_QuickForm2_Element_Select_OptionContainer::__toString() (parent method not documented)
[ Top ]

Documentation generated on Wed, 09 Dec 2015 23:09:13 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.