Index: trunk/phase3/includes/Xml.php |
— | — | @@ -751,6 +751,14 @@ |
752 | 752 | $this->attributes[$name] = $value; |
753 | 753 | } |
754 | 754 | |
| 755 | + public function getAttribute( $name ) { |
| 756 | + if ( isset($this->attributes[$name]) ) { |
| 757 | + return $this->attributes[$name]; |
| 758 | + } else { |
| 759 | + return null; |
| 760 | + } |
| 761 | + } |
| 762 | + |
755 | 763 | public function addOption( $name, $value = false ) { |
756 | 764 | // Stab stab stab |
757 | 765 | $value = ($value !== false) ? $value : $name; |