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

Class: HTML_QuickForm2_Element_Select_Optgroup

Source Location: /HTML_QuickForm2-0.1.0/QuickForm2/Element/Select.php

Class Overview

HTML_Common2
   |
   --HTML_QuickForm2_Element_Select_OptionContainer
      |
      --HTML_QuickForm2_Element_Select_Optgroup

Class representing an <optgroup> tag


Author(s):

Version:

  • Release: 0.1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 231]
Class representing an <optgroup> tag

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



[ Top ]


Method Detail

__construct (Constructor)   [line 243]

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

Class constructor
  • Access: public

Overrides HTML_QuickForm2_Element_Select_OptionContainer::__construct() (Class constructor)

Parameters:

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
mixed   $attributes   —  Additional attributes for <optgroup> tag (either as a string or as an associative array)

[ Top ]

__toString   [line 250]

void __toString( )

  • Access: public

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


Documentation generated on Mon, 11 Mar 2019 15:00:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.