X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FXml.php;h=7dcd4a4327590016ef99d9dc459715d128c0792d;hb=387bfb4f8e82fd94d1e43016ea2c6e54062dd169;hp=0091513125ca68ee601dac526b532271fbba76cd;hpb=04191cc9512e5ebe31cc8ca268e2ab431f02796b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Xml.php b/includes/Xml.php index 0091513125..7dcd4a4327 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -160,8 +160,9 @@ class Xml { } /** - * @param int $year - * @param int $month + * @param int|string $year Use '' or 0 to start with no year preselected. + * @param int|string $month A month in the 1..12 range. Use '', 0 or -1 to start with no month + * preselected. * @return string Formatted HTML */ public static function dateMenu( $year, $month ) { @@ -532,8 +533,8 @@ class Xml { * * @param string $list Correctly formatted text (newline delimited) to be * used to generate the options. - * @param array $params Extra parameters - * @param string $params['other'] If set, add an option with this as text and a value of 'other' + * @param array $params Extra parameters: + * - string $params['other'] If set, add an option with this as text and a value of 'other' * @return array Array keys are textual labels, values are internal values */ public static function listDropDownOptions( $list, $params = [] ) {