From 46aacac9cbe7d4eece1c85fc3a3b00b1f25efdd9 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 30 Sep 2004 22:48:38 +0000 Subject: [PATCH] moving html forms builders to its own class. Do we want them in wgOut instead ? --- includes/SpecialSitesettings.php | 44 +++----------------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/includes/SpecialSitesettings.php b/includes/SpecialSitesettings.php index ecc97a9706..0c8f450486 100644 --- a/includes/SpecialSitesettings.php +++ b/includes/SpecialSitesettings.php @@ -1,14 +1,14 @@ execute(); } -class SiteSettingsForm { +class SiteSettingsForm extends HTMLForm { var $mPosted, $mRequest, $mReset, $mSaveprefs; function SiteSettingsForm ( &$request ) { @@ -36,44 +36,6 @@ class SiteSettingsForm { return; } - /* private */ function fieldset( $name, $content ) { - return "
".wfMsg($name)."\n" . - $content . "\n
\n"; - } - - /* private */ function checkbox( $varname, $checked=false ) { - $checked = isset( $GLOBALS[$varname] ) && $GLOBALS[$varname] ; - return "
\n"; - } - - /* private */ function textbox( $varname, $value='', $size=20 ) { - $value = isset( $GLOBALS[$varname] ) ? $GLOBALS[$varname] : ''; - return "
\n"; - } - /* private */ function radiobox( $varname, $fields ) { - foreach ( $fields as $value => $checked ) { - $s .= "
\n"; - } - return $this->fieldset( 'sitesettings-'.$varname, $s ); - } - - /* private */ function arraybox( $varname , $size=20 ) { - $s = ''; - if ( isset( $GLOBALS[$varname] ) && is_array( $GLOBALS[$varname] ) ) { - foreach ( $GLOBALS[$varname] as $index=>$element ) { - $s .= $element."\n"; - } - } - return "