Clarify doc, per r63675 CR.
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 6 Nov 2010 15:14:04 +0000 (15:14 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 6 Nov 2010 15:14:04 +0000 (15:14 +0000)
includes/Xml.php

index 8b5671c..65f2010 100644 (file)
@@ -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() ) {