Home » HTML » HTML_QuickForm2 » Bug #9942
Implement a setSeperator()-method
Details
| Request #9942 | Implement a setSeperator()-method |
|---|---|
| Submitted | 2007-01-25 15:37 UTC |
| From | sw at brainbits dot net |
| Assigned | avb |
| Status | Closed |
| Package | HTML_QuickForm2 |
| PHP Version | 5.1.6 |
| OS | Linux |
| Roadmaps | 0.3.0 |
Comments
[2007-01-25 15:37 UTC] sw at brainbits dot net
Description:
------------
After creating a group you have no chance (but setting the _separator-attribute directly) to change the group seperator.
It would be nice to have a method for this, linear to the other elements.
Looking at the code, this should suffice:
setSeparator($separator) {
$this->_separator = $separator;
}
Test script:
---------------
$form = new HTML_QuickForm();
$form->addGroup('test');
$form->setSeparator('<br>');
Expected result:
----------------
Have a group with separator <br>
Actual result:
--------------
an error because the method doesn't exist ;-)