From: Antoine Musso Date: Fri, 1 Oct 2004 03:10:10 +0000 (+0000) Subject: comments X-Git-Tag: 1.5.0alpha1~1714 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=b6d74c6de1f15a81e10886fc5f8240f0306d8c1c;p=lhc%2Fweb%2Fwiklou.git comments --- 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 .= "