Core change for r52446, allow querying params like id
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 26 Jun 2009 11:17:12 +0000 (11:17 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 26 Jun 2009 11:17:12 +0000 (11:17 +0000)
includes/Xml.php

index 0358507..5359f32 100644 (file)
@@ -751,6 +751,14 @@ class XmlSelect {
                $this->attributes[$name] = $value;
        }
 
+       public function getAttribute( $name ) {
+               if ( isset($this->attributes[$name]) ) {
+                       return $this->attributes[$name];
+               } else {
+                       return null;
+               }
+       }
+
        public function addOption( $name, $value = false ) {
                // Stab stab stab
                $value = ($value !== false) ? $value : $name;