$subGroupName = $this->subGroupName;
}
+ // Same sub group to open?
+ if (($this->subGroupOpened === false) && ($subGroupName == $this->subGroupName)) {
+ // Abort here silently
+ return false;
+ } // END - if
+
// Initialize content with closing div by default
$content = " </div>\n</div><!-- Sub group- CLOSE //-->";
* Add text (notes) surrounded by a div block. Still opened groups or sub
* groups will be automatically closed.
*
+ * @param $noteId Id for this note
* @param $formNotes The form notes we shell addd
* @return void
* @throws FormClosedException If the form is not yet opened
*/
- public function addFormNote ($formNotes) {
+ public function addFormNote ($noteId, $formNotes) {
// Is the form opened?
if (($this->formOpened === false) && ($this->formEnabled === true)) {
// Throw an exception
} // END - if
// Generate the content
- $inputContent = sprintf(" <div id=\"form_note\">
+ $inputContent = sprintf(" <div id=\"form_note_%s\">
%s
</div>",
+ $noteId,
$formNotes
);