57        if (!
$xml->hasAttribute(
'Name')) {
 
   58            throw new \Exception(
'Missing Name on Attribute.');
 
   60        $this->Name = 
$xml->getAttribute(
'Name');
 
   62        if (
$xml->hasAttribute(
'NameFormat')) {
 
   63            $this->NameFormat = 
$xml->getAttribute(
'NameFormat');
 
   66        if (
$xml->hasAttribute(
'FriendlyName')) {
 
   67            $this->FriendlyName = 
$xml->getAttribute(
'FriendlyName');
 
   87        assert(is_string(
$name));
 
   88        assert(is_string($this->Name));
 
   89        assert(is_null($this->NameFormat) || is_string($this->NameFormat));
 
   90        assert(is_null($this->FriendlyName) || is_string($this->FriendlyName));
 
   94        $parent->appendChild($e);
 
   96        $e->setAttribute(
'Name', $this->Name);
 
   98        if (isset($this->NameFormat)) {
 
   99            $e->setAttribute(
'NameFormat', $this->NameFormat);
 
  102        if (isset($this->FriendlyName)) {
 
  103            $e->setAttribute(
'FriendlyName', $this->FriendlyName);
 
  119    public function toXML(\DOMElement $parent)
 
An exception for terminatinating execution or to throw for unit testing.
const NS_SAML
The namespace for the SAML 2 assertions.
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
toXML(\DOMElement $parent)
Convert this Attribute to XML.
toXMLInternal(\DOMElement $parent, $namespace, $name)
Internal implementation of toXML.
__construct(\DOMElement $xml=null)
Initialize an Attribute.
if($err=$client->getError()) $namespace