r75597 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75596‎ | r75597 | r75598 >
Date:23:50, 27 October 2010
Author:reedy
Status:ok
Tags:
Comment:
Parameter documentation
Modified paths:
  • /trunk/phase3/includes/Xml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Xml.php
@@ -81,7 +81,7 @@
8282 /**
8383 * This opens an XML element
8484 *
85 - * @param $element name of the element
 85+ * @param $element String name of the element
8686 * @param $attribs array of attributes, see Xml::expandAttributes()
8787 * @return string
8888 */
@@ -91,7 +91,7 @@
9292
9393 /**
9494 * Shortcut to close an XML element
95 - * @param $element element name
 95+ * @param $element String element name
9696 * @return string
9797 */
9898 public static function closeElement( $element ) { return "</$element>"; }
@@ -100,7 +100,7 @@
101101 * Same as Xml::element(), but does not escape contents. Handy when the
102102 * content you have is already valid xml.
103103 *
104 - * @param $element element name
 104+ * @param $element String element name
105105 * @param $attribs array of attributes
106106 * @param $contents content of the element
107107 * @return string
@@ -345,7 +345,7 @@
346346
347347 /**
348348 * Convenience function to build an HTML form label
349 - * @param $label text of the label
 349+ * @param $label String text of the label
350350 * @param $id
351351 * @param $attribs Array, other attributes
352352 * @return string HTML
@@ -360,9 +360,9 @@
361361
362362 /**
363363 * Convenience function to build an HTML text input field with a label
364 - * @param $label text of the label
365 - * @param $name value of the name attribute
366 - * @param $id id of the input
 364+ * @param $label String text of the label
 365+ * @param $name String value of the name attribute
 366+ * @param $id String id of the input
367367 * @param $size value of the size attribute
368368 * @param $value value of the value attribute
369369 * @param $attribs other attributes

Status & tagging log