Adds a non-selectable sub option to a previously added selection box. This method does *not* validate if there is already a sub option added with the same name. We need to finish this here!
Definition at line 623 of file class_WebFormHelper.php. References BaseHelper.$content, BaseHelper.addContentToPreviousGroup(), and BaseHelper.ifSubGroupOpenedPreviously(). 00623 { 00624 // Is there a sub group (shall be a selection box!) 00625 if ($this->ifSubGroupOpenedPreviously() === false) { 00626 // Then throw an exception here 00627 throw new HelperNoPreviousOpenedSubGroupException(array($this, $content), self::EXCEPTION_NO_PREVIOUS_SUB_GROUP_OPENED); 00628 } // END - if 00629 00630 // Render the content 00631 $content = sprintf("<option value=\"invalid\" class=\"suboption suboption_%s\" disabled=\"disabled\">%s</option>\n", 00632 $subName, 00633 $subValue 00634 ); 00635 00636 // Add the content to the previously opened sub group 00637 $this->addContentToPreviousGroup($content); 00638 }
Here is the call graph for this function:
![]()
|
1.5.6