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

Class: HTML_QuickForm2_Element_Select_Optgroup

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

Class Overview

HTML_Common2
   |
   --HTML_QuickForm2_Element_Select_OptionContainer
      |
      --HTML_QuickForm2_Element_Select_Optgroup

Class representing an <optgroup> tag


Author(s):

Version:

  • Release: 2.1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 42]
Class representing an <optgroup> tag

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



[ Top ]


Method Detail

__construct (Constructor)   [line 54]

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)

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

[ Top ]

__toString   [line 61]

void __toString( )

  • Access: public

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


Documentation generated on Wed, 10 Apr 2019 08:56:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.