Note that restrictions are rights, not groups. So now, cascading protection will...
[lhc/web/wiklou.git] / includes / XmlFunctions.php
index 64e349f..bc18a2c 100644 (file)
@@ -1,21 +1,21 @@
 <?php
-
 /**
  * Aliases for functions in the Xml module
+ * Look at the Xml class (Xml.php) for the implementations.
  */
-function wfElement( $element, $attribs = null, $contents = '') { 
-       return Xml::element( $element, $attribs, $contents ); 
+function wfElement( $element, $attribs = null, $contents = '') {
+       return Xml::element( $element, $attribs, $contents );
 }
 function wfElementClean( $element, $attribs = array(), $contents = '') {
        return Xml::elementClean( $element, $attribs, $contents );
 }
-function wfOpenElement( $element, $attribs = null ) { 
-       return Xml::openElement( $element, $attribs ); 
+function wfOpenElement( $element, $attribs = null ) {
+       return Xml::openElement( $element, $attribs );
 }
-function wfCloseElement( $element ) { 
-       return "</$element>"; 
+function wfCloseElement( $element ) {
+       return "</$element>";
 }
-function &HTMLnamespaceselector($selected = '', $allnamespaces = null, $includehidden=false) {
+function HTMLnamespaceselector($selected = '', $allnamespaces = null, $includehidden=false) {
        return Xml::namespaceSelector( $selected, $allnamespaces, $includehidden );
 }
 function wfSpan( $text, $class, $attribs=array() ) {
@@ -61,5 +61,6 @@ function wfIsWellFormedXmlFragment( $text ) {
        return Xml::isWellFormedXmlFragment( $text );
 }
 
-
-?>
+function wfBuildForm( $fields, $submitLabel ) {
+       return Xml::buildForm( $fields, $submitLabel );
+}