3 * Aliases for functions in the Xml module
4 * Look at the Xml class (Xml.php) for the implementations.
6 function wfElement( $element, $attribs = null, $contents = '') {
7 return Xml
::element( $element, $attribs, $contents );
9 function wfElementClean( $element, $attribs = array(), $contents = '') {
10 return Xml
::elementClean( $element, $attribs, $contents );
12 function wfOpenElement( $element, $attribs = null ) {
13 return Xml
::openElement( $element, $attribs );
15 function wfCloseElement( $element ) {
18 function HTMLnamespaceselector($selected = '', $allnamespaces = null, $includehidden=false) {
19 return Xml
::namespaceSelector( $selected, $allnamespaces, $includehidden );
21 function wfSpan( $text, $class, $attribs=array() ) {
22 return Xml
::span( $text, $class, $attribs );
24 function wfInput( $name, $size=false, $value=false, $attribs=array() ) {
25 return Xml
::input( $name, $size, $value, $attribs );
27 function wfAttrib( $name, $present = true ) {
28 return Xml
::attrib( $name, $present );
30 function wfCheck( $name, $checked=false, $attribs=array() ) {
31 return Xml
::check( $name, $checked, $attribs );
33 function wfRadio( $name, $value, $checked=false, $attribs=array() ) {
34 return Xml
::radio( $name, $value, $checked, $attribs );
36 function wfLabel( $label, $id ) {
37 return Xml
::label( $label, $id );
39 function wfInputLabel( $label, $name, $id, $size=false, $value=false, $attribs=array() ) {
40 return Xml
::inputLabel( $label, $name, $id, $size, $value, $attribs );
42 function wfCheckLabel( $label, $name, $id, $checked=false, $attribs=array() ) {
43 return Xml
::checkLabel( $label, $name, $id, $checked, $attribs );
45 function wfRadioLabel( $label, $name, $value, $id, $checked=false, $attribs=array() ) {
46 return Xml
::radioLabel( $label, $name, $value, $id, $checked, $attribs );
48 function wfSubmitButton( $value, $attribs=array() ) {
49 return Xml
::submitButton( $value, $attribs );
51 function wfHidden( $name, $value, $attribs=array() ) {
52 return Xml
::hidden( $name, $value, $attribs );
54 function wfEscapeJsString( $string ) {
55 return Xml
::escapeJsString( $string );
57 function wfIsWellFormedXml( $text ) {
58 return Xml
::isWellFormed( $text );
60 function wfIsWellFormedXmlFragment( $text ) {
61 return Xml
::isWellFormedXmlFragment( $text );