r44992 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44991‎ | r44992 | r44993 >
Date:23:49, 23 December 2008
Author:aaron
Status:ok
Tags:
Comment:
Add wfDeprecated(__FUNCTION__) to all this garbage
Modified paths:
  • /trunk/phase3/includes/XmlFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/XmlFunctions.php
@@ -4,63 +4,83 @@
55 * Look at the Xml class (Xml.php) for the implementations.
66 */
77 function wfElement( $element, $attribs = null, $contents = '') {
 8+ wfDeprecated(__FUNCTION__);
89 return Xml::element( $element, $attribs, $contents );
910 }
1011 function wfElementClean( $element, $attribs = array(), $contents = '') {
 12+ wfDeprecated(__FUNCTION__);
1113 return Xml::elementClean( $element, $attribs, $contents );
1214 }
1315 function wfOpenElement( $element, $attribs = null ) {
 16+ wfDeprecated(__FUNCTION__);
1417 return Xml::openElement( $element, $attribs );
1518 }
1619 function wfCloseElement( $element ) {
 20+ wfDeprecated(__FUNCTION__);
1721 return "</$element>";
1822 }
1923 function HTMLnamespaceselector($selected = '', $allnamespaces = null ) {
 24+ wfDeprecated(__FUNCTION__);
2025 return Xml::namespaceSelector( $selected, $allnamespaces );
2126 }
2227 function wfSpan( $text, $class, $attribs=array() ) {
 28+ wfDeprecated(__FUNCTION__);
2329 return Xml::span( $text, $class, $attribs );
2430 }
2531 function wfInput( $name, $size=false, $value=false, $attribs=array() ) {
 32+ wfDeprecated(__FUNCTION__);
2633 return Xml::input( $name, $size, $value, $attribs );
2734 }
2835 function wfAttrib( $name, $present = true ) {
 36+ wfDeprecated(__FUNCTION__);
2937 return Xml::attrib( $name, $present );
3038 }
3139 function wfCheck( $name, $checked=false, $attribs=array() ) {
 40+ wfDeprecated(__FUNCTION__);
3241 return Xml::check( $name, $checked, $attribs );
3342 }
3443 function wfRadio( $name, $value, $checked=false, $attribs=array() ) {
 44+ wfDeprecated(__FUNCTION__);
3545 return Xml::radio( $name, $value, $checked, $attribs );
3646 }
3747 function wfLabel( $label, $id ) {
 48+ wfDeprecated(__FUNCTION__);
3849 return Xml::label( $label, $id );
3950 }
4051 function wfInputLabel( $label, $name, $id, $size=false, $value=false, $attribs=array() ) {
 52+ wfDeprecated(__FUNCTION__);
4153 return Xml::inputLabel( $label, $name, $id, $size, $value, $attribs );
4254 }
4355 function wfCheckLabel( $label, $name, $id, $checked=false, $attribs=array() ) {
 56+ wfDeprecated(__FUNCTION__);
4457 return Xml::checkLabel( $label, $name, $id, $checked, $attribs );
4558 }
4659 function wfRadioLabel( $label, $name, $value, $id, $checked=false, $attribs=array() ) {
 60+ wfDeprecated(__FUNCTION__);
4761 return Xml::radioLabel( $label, $name, $value, $id, $checked, $attribs );
4862 }
4963 function wfSubmitButton( $value, $attribs=array() ) {
 64+ wfDeprecated(__FUNCTION__);
5065 return Xml::submitButton( $value, $attribs );
5166 }
5267 function wfHidden( $name, $value, $attribs=array() ) {
 68+ wfDeprecated(__FUNCTION__);
5369 return Xml::hidden( $name, $value, $attribs );
5470 }
5571 function wfEscapeJsString( $string ) {
 72+ wfDeprecated(__FUNCTION__);
5673 return Xml::escapeJsString( $string );
5774 }
5875 function wfIsWellFormedXml( $text ) {
 76+ wfDeprecated(__FUNCTION__);
5977 return Xml::isWellFormed( $text );
6078 }
6179 function wfIsWellFormedXmlFragment( $text ) {
 80+ wfDeprecated(__FUNCTION__);
6281 return Xml::isWellFormedXmlFragment( $text );
6382 }
6483
6584 function wfBuildForm( $fields, $submitLabel ) {
 85+ wfDeprecated(__FUNCTION__);
6686 return Xml::buildForm( $fields, $submitLabel );
6787 }

Status & tagging log