X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FXml.php;h=83c3d9e849ce3fb177a0a5bb727315753537ca19;hb=be8ce87825ae5d415fee2a1ee992184ed2f44a90;hp=8b5671cd99d38d53bcadfa22a4a2781aa460b5a8;hpb=a5b16e9cb5abd79c4aea788d698b4722796344f4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Xml.php b/includes/Xml.php index 8b5671cd99..83c3d9e849 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -347,7 +347,10 @@ class Xml { * Convenience function to build an HTML form label * @param $label String text of the label * @param $id - * @param $attribs Array, other attributes + * @param $attribs Array an attribute array. This will usuall be + * the same array as is passed to the corresponding input element, + * so this function will cherry-pick appropriate attributes to + * apply to the label as well; currently only class is applied. * @return string HTML */ public static function label( $label, $id, $attribs=array() ) { @@ -617,7 +620,7 @@ class Xml { * Create a call to a JavaScript function. The supplied arguments will be * encoded using Xml::encodeJsVar(). * - * @param $name The name of the function to call, or a JavaScript expression + * @param $name String The name of the function to call, or a JavaScript expression * which evaluates to a function object which is called. * @param $args Array of arguments to pass to the function. * @since 1.17