]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/XmlFunctions.php
MediaWiki 1.16.4
[autoinstalls/mediawiki.git] / includes / XmlFunctions.php
1 <?php
2 /**
3  * Aliases for functions in the Xml module
4  * Look at the Xml class (Xml.php) for the implementations.
5  */
6 function wfElement( $element, $attribs = null, $contents = '') {
7         wfDeprecated(__FUNCTION__);
8         return Xml::element( $element, $attribs, $contents );
9 }
10 function wfElementClean( $element, $attribs = array(), $contents = '') {
11         wfDeprecated(__FUNCTION__);
12         return Xml::elementClean( $element, $attribs, $contents );
13 }
14 function wfOpenElement( $element, $attribs = null ) {
15         wfDeprecated(__FUNCTION__);
16         return Xml::openElement( $element, $attribs );
17 }
18 function wfCloseElement( $element ) {
19         wfDeprecated(__FUNCTION__);
20         return "</$element>";
21 }
22 function HTMLnamespaceselector($selected = '', $allnamespaces = null ) {
23         wfDeprecated(__FUNCTION__);
24         return Xml::namespaceSelector( $selected, $allnamespaces );
25 }
26 function wfSpan( $text, $class, $attribs=array() ) {
27         wfDeprecated(__FUNCTION__);
28         return Xml::span( $text, $class, $attribs );
29 }
30 function wfInput( $name, $size=false, $value=false, $attribs=array() ) {
31         wfDeprecated(__FUNCTION__);
32         return Xml::input( $name, $size, $value, $attribs );
33 }
34 function wfAttrib( $name, $present = true ) {
35         wfDeprecated(__FUNCTION__);
36         return Xml::attrib( $name, $present );
37 }
38 function wfCheck( $name, $checked=false, $attribs=array() ) {
39         wfDeprecated(__FUNCTION__);
40         return Xml::check( $name, $checked, $attribs );
41 }
42 function wfRadio( $name, $value, $checked=false, $attribs=array() ) {
43         wfDeprecated(__FUNCTION__);
44         return Xml::radio( $name, $value, $checked, $attribs );
45 }
46 function wfLabel( $label, $id ) {
47         wfDeprecated(__FUNCTION__);
48         return Xml::label( $label, $id );
49 }
50 function wfInputLabel( $label, $name, $id, $size=false, $value=false, $attribs=array() ) {
51         wfDeprecated(__FUNCTION__);
52         return Xml::inputLabel( $label, $name, $id, $size, $value, $attribs );
53 }
54 function wfCheckLabel( $label, $name, $id, $checked=false, $attribs=array() ) {
55         wfDeprecated(__FUNCTION__);
56         return Xml::checkLabel( $label, $name, $id, $checked, $attribs );
57 }
58 function wfRadioLabel( $label, $name, $value, $id, $checked=false, $attribs=array() ) {
59         wfDeprecated(__FUNCTION__);
60         return Xml::radioLabel( $label, $name, $value, $id, $checked, $attribs );
61 }
62 function wfSubmitButton( $value, $attribs=array() ) {
63         wfDeprecated(__FUNCTION__);
64         return Xml::submitButton( $value, $attribs );
65 }
66 function wfHidden( $name, $value, $attribs=array() ) {
67         wfDeprecated(__FUNCTION__);
68         return Xml::hidden( $name, $value, $attribs );
69 }
70 function wfEscapeJsString( $string ) {
71         wfDeprecated(__FUNCTION__);
72         return Xml::escapeJsString( $string );
73 }
74 function wfIsWellFormedXml( $text ) {
75         wfDeprecated(__FUNCTION__);
76         return Xml::isWellFormed( $text );
77 }
78 function wfIsWellFormedXmlFragment( $text ) {
79         wfDeprecated(__FUNCTION__);
80         return Xml::isWellFormedXmlFragment( $text );
81 }
82
83 function wfBuildForm( $fields, $submitLabel ) {
84         wfDeprecated(__FUNCTION__);
85         return Xml::buildForm( $fields, $submitLabel );
86 }