original_string: public function addOptgroup($label, $attributes = null)
      {
          $optgroup = new HTML_QuickForm2_Element_Select_Optgroup(
                              $this->values, $this->possibleValues,
                              $label, $attributes
                          );
          $this->options[] = $optgroup;
          return $optgroup;
      }
code: public function addOptgroup($label, $attributes = null)
      {
          $optgroup = new HTML_QuickForm2_Element_Select_Optgroup(
                              $this->values, $this->possibleValues,
                              $label, $attributes
                          );
          $this->options[] = $optgroup;
          return $optgroup;
      }
code_tokens: public function addOptgroup ( $ label , $ attributes = null ) { $ optgroup = new HTML_QuickForm2_Element_Select_Optgroup ( $ this -> values , $ this -> possibleValues , $ label , $ attributes ) ; $ this -> options [ ] = $ optgroup ; return $ optgroup ; }
docstring: Adds a new optgroup
  
  @param    string  'label' attribute for optgroup tag
  @param    mixed   Additional attributes for <optgroup> tag (either as a
  string or as an associative array)
  @return   HTML_QuickForm2_Element_Select_Optgroup
docstring_tokens: Adds a new optgroup