PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm2 » Bug #9942

Implement a setSeperator()-method

Details

Request #9942Implement a setSeperator()-method
Submitted2007-01-25 15:37 UTC
Fromsw at brainbits dot net
Assignedavb
StatusClosed
PackageHTML_QuickForm2
PHP Version5.1.6
OSLinux
Roadmaps0.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 ;-)