HTML_QuickForm2
[ 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

HTML_Common2
   |
   --HTML_QuickForm2_Element_Select_OptionContainer
      |
      --HTML_QuickForm2_Element_Select_Optgroup

Class representing an <optgroup> tag


Author(s):

Version:

  • Release: 2.0.2

Methods


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)

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 254]

void __toString( )

  • Access: public

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


Documentation generated on Sat, 28 Jun 2014 09:30:29 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.