|
@@ 88-96 (lines=9) @@
|
| 85 |
|
* @param string $localName The local name. |
| 86 |
|
* @return boolean true if the attribute exists, false if not. |
| 87 |
|
*/ |
| 88 |
|
public function hasAttributeNS($namespaceURI, $localName) |
| 89 |
|
{ |
| 90 |
|
assert('is_string($namespaceURI)'); |
| 91 |
|
assert('is_string($localName)'); |
| 92 |
|
|
| 93 |
|
$fullName = '{' . $namespaceURI . '}' . $localName; |
| 94 |
|
|
| 95 |
|
return isset($this->attributes[$fullName]); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
| 99 |
|
* Get a namespace-qualified attribute. |
|
@@ 151-158 (lines=8) @@
|
| 148 |
|
* @param string $namespaceURI The namespace URI. |
| 149 |
|
* @param string $localName The local name. |
| 150 |
|
*/ |
| 151 |
|
public function removeAttributeNS($namespaceURI, $localName) |
| 152 |
|
{ |
| 153 |
|
assert('is_string($namespaceURI)'); |
| 154 |
|
assert('is_string($localName)'); |
| 155 |
|
|
| 156 |
|
$fullName = '{' . $namespaceURI . '}' . $localName; |
| 157 |
|
unset($this->attributes[$fullName]); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
/** |
| 161 |
|
* Add this endpoint to an XML element. |