From b6d74c6de1f15a81e10886fc5f8240f0306d8c1c Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 1 Oct 2004 03:10:10 +0000 Subject: [PATCH] comments --- includes/HTMLForm.php | 47 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 0512043af6..04d553f91b 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1,4 +1,5 @@ ".wfMsg($this->mName.'-'.$name)."\n" . $content . "\n\n"; } - /* private */ function checkbox( $varname, $checked=false ) { + /* + * @access private + * @param string $varname Name of the checkbox. + * @param boolean $checked Set true to check the box (default False). + */ + function checkbox( $varname, $checked=false ) { $checked = isset( $GLOBALS[$varname] ) && $GLOBALS[$varname] ; return "
\n"; } - /* private */ function textbox( $varname, $value='', $size=20 ) { + /* + * @access private + * @param string $varname Name of the textbox. + * @param string $value Optional value (default empty) + * @param integer $size Optional size of the textbox (default 20) + */ + function textbox( $varname, $value='', $size=20 ) { $value = isset( $GLOBALS[$varname] ) ? $GLOBALS[$varname] : $value; return "
\n"; } - /* private */ function radiobox( $varname, $fields ) { + + /* + * @access private + * @param string $varname Name of the radiobox. + * @param array $fields Various fields. + */ + function radiobox( $varname, $fields ) { foreach ( $fields as $value => $checked ) { $s .= "