Making INNER JOIN implicit
[lhc/web/wiklou.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 return Xml::element( $element, $attribs, $contents );
8 }
9 function wfElementClean( $element, $attribs = array(), $contents = '') {
10 return Xml::elementClean( $element, $attribs, $contents );
11 }
12 function wfOpenElement( $element, $attribs = null ) {
13 return Xml::openElement( $element, $attribs );
14 }
15 function wfCloseElement( $element ) {
16 return "</$element>";
17 }
18 function HTMLnamespaceselector($selected = '', $allnamespaces = null, $includehidden=false) {
19 return Xml::namespaceSelector( $selected, $allnamespaces, $includehidden );
20 }
21 function wfSpan( $text, $class, $attribs=array() ) {
22 return Xml::span( $text, $class, $attribs );
23 }
24 function wfInput( $name, $size=false, $value=false, $attribs=array() ) {
25 return Xml::input( $name, $size, $value, $attribs );
26 }
27 function wfAttrib( $name, $present = true ) {
28 return Xml::attrib( $name, $present );
29 }
30 function wfCheck( $name, $checked=false, $attribs=array() ) {
31 return Xml::check( $name, $checked, $attribs );
32 }
33 function wfRadio( $name, $value, $checked=false, $attribs=array() ) {
34 return Xml::radio( $name, $value, $checked, $attribs );
35 }
36 function wfLabel( $label, $id ) {
37 return Xml::label( $label, $id );
38 }
39 function wfInputLabel( $label, $name, $id, $size=false, $value=false, $attribs=array() ) {
40 return Xml::inputLabel( $label, $name, $id, $size, $value, $attribs );
41 }
42 function wfCheckLabel( $label, $name, $id, $checked=false, $attribs=array() ) {
43 return Xml::checkLabel( $label, $name, $id, $checked, $attribs );
44 }
45 function wfRadioLabel( $label, $name, $value, $id, $checked=false, $attribs=array() ) {
46 return Xml::radioLabel( $label, $name, $value, $id, $checked, $attribs );
47 }
48 function wfSubmitButton( $value, $attribs=array() ) {
49 return Xml::submitButton( $value, $attribs );
50 }
51 function wfHidden( $name, $value, $attribs=array() ) {
52 return Xml::hidden( $name, $value, $attribs );
53 }
54 function wfEscapeJsString( $string ) {
55 return Xml::escapeJsString( $string );
56 }
57 function wfIsWellFormedXml( $text ) {
58 return Xml::isWellFormed( $text );
59 }
60 function wfIsWellFormedXmlFragment( $text ) {
61 return Xml::isWellFormedXmlFragment( $text );
62 }
63
64 function wfBuildForm( $fields, $submitLabel ) {
65 return Xml::buildForm( $fields, $submitLabel );
66 }