HTMLForm mutators can now be chained
authorAntoine Musso <hashar@free.fr>
Tue, 24 Jul 2012 09:45:22 +0000 (11:45 +0200)
committerReedy <reedy@wikimedia.org>
Thu, 2 Aug 2012 18:15:42 +0000 (19:15 +0100)
commit5e8e2d76fe515286e07d77c994c3c72078586aa3
treeceff5dbff9839117ee3895393acd150d14cd7679
parentb7ce0372b06fec4f9b3f2c2c8b2a794e5ab742f3
HTMLForm mutators can now be chained

This make HTMLForm mutator to return $this for easy method chaining such
as:

form = new HTMLForm( $someFields );
$form->setMethod( 'get' )
 ->setWrapperLegendMsg( 'message-key' )
 ->suppressReset()
 ->prepareForm()
 ->displayForm();

prepareForm()->displayForm(); should be at the very end apparently
though it is not enforced by the object.

Change-Id: Iebaa83a1da3c89e5ab729a889e54844535619d54
RELEASE-NOTES-1.20
includes/HTMLForm.php