More RTL fixes and also another fix to r52944 which broke the inclusion of common...
[mediawiki.git] / includes / XmlFunctions.php
blob8cb8f3f542b34108f323eb0f9bdd45f371dc5140
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 );
10 function wfElementClean( $element, $attribs = array(), $contents = '') {
11 wfDeprecated(__FUNCTION__);
12 return Xml::elementClean( $element, $attribs, $contents );
14 function wfOpenElement( $element, $attribs = null ) {
15 wfDeprecated(__FUNCTION__);
16 return Xml::openElement( $element, $attribs );
18 function wfCloseElement( $element ) {
19 wfDeprecated(__FUNCTION__);
20 return "</$element>";
22 function HTMLnamespaceselector($selected = '', $allnamespaces = null ) {
23 wfDeprecated(__FUNCTION__);
24 return Xml::namespaceSelector( $selected, $allnamespaces );
26 function wfSpan( $text, $class, $attribs=array() ) {
27 wfDeprecated(__FUNCTION__);
28 return Xml::span( $text, $class, $attribs );
30 function wfInput( $name, $size=false, $value=false, $attribs=array() ) {
31 wfDeprecated(__FUNCTION__);
32 return Xml::input( $name, $size, $value, $attribs );
34 function wfAttrib( $name, $present = true ) {
35 wfDeprecated(__FUNCTION__);
36 return Xml::attrib( $name, $present );
38 function wfCheck( $name, $checked=false, $attribs=array() ) {
39 wfDeprecated(__FUNCTION__);
40 return Xml::check( $name, $checked, $attribs );
42 function wfRadio( $name, $value, $checked=false, $attribs=array() ) {
43 wfDeprecated(__FUNCTION__);
44 return Xml::radio( $name, $value, $checked, $attribs );
46 function wfLabel( $label, $id ) {
47 wfDeprecated(__FUNCTION__);
48 return Xml::label( $label, $id );
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 );
54 function wfCheckLabel( $label, $name, $id, $checked=false, $attribs=array() ) {
55 wfDeprecated(__FUNCTION__);
56 return Xml::checkLabel( $label, $name, $id, $checked, $attribs );
58 function wfRadioLabel( $label, $name, $value, $id, $checked=false, $attribs=array() ) {
59 wfDeprecated(__FUNCTION__);
60 return Xml::radioLabel( $label, $name, $value, $id, $checked, $attribs );
62 function wfSubmitButton( $value, $attribs=array() ) {
63 wfDeprecated(__FUNCTION__);
64 return Xml::submitButton( $value, $attribs );
66 function wfHidden( $name, $value, $attribs=array() ) {
67 wfDeprecated(__FUNCTION__);
68 return Xml::hidden( $name, $value, $attribs );
70 function wfEscapeJsString( $string ) {
71 wfDeprecated(__FUNCTION__);
72 return Xml::escapeJsString( $string );
74 function wfIsWellFormedXml( $text ) {
75 wfDeprecated(__FUNCTION__);
76 return Xml::isWellFormed( $text );
78 function wfIsWellFormedXmlFragment( $text ) {
79 wfDeprecated(__FUNCTION__);
80 return Xml::isWellFormedXmlFragment( $text );
83 function wfBuildForm( $fields, $submitLabel ) {
84 wfDeprecated(__FUNCTION__);
85 return Xml::buildForm( $fields, $submitLabel );