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