PHP Class SAML2\XML\md\ContactPerson

Show file Open project: simplesamlphp/saml2 Class Usage Examples

Public Properties

Property Type Description
$Company string The Company of this contact.
$ContactPersonAttributes array Extra attributes on the contact element.
$EmailAddress array The EmailAddresses of this contact.
$Extensions array Array of extension elements.
$GivenName string The GivenName of this contact.
$SurName string The SurName of this contact.
$TelephoneNumber array The TelephoneNumbers of this contact.
$contactType string The contact type.

Public Methods

Method Description
__construct ( DOMElement $xml = null ) Initialize a ContactPerson element.
toXML ( DOMElement $parent ) : DOMElement Convert this ContactPerson to XML.

Private Methods

Method Description
getStringElement ( DOMElement $parent, string $name ) : string | null Retrieve the value of a child \DOMElement as a string.
getStringElements ( DOMElement $parent, string $name ) : array Retrieve the value of a child \DOMElements as an array of strings.

Method Details

__construct() public method

Initialize a ContactPerson element.
public __construct ( DOMElement $xml = null )
$xml DOMElement The XML element we should load.

toXML() public method

Convert this ContactPerson to XML.
public toXML ( DOMElement $parent ) : DOMElement
$parent DOMElement The element we should add this contact to.
return DOMElement The new ContactPerson-element.

Property Details

$Company public property

The Company of this contact.
public string $Company
return string

$ContactPersonAttributes public property

Extra attributes on the contact element.
public array $ContactPersonAttributes
return array

$EmailAddress public property

The EmailAddresses of this contact.
public array $EmailAddress
return array

$Extensions public property

Array of extension elements.
public array $Extensions
return array

$GivenName public property

The GivenName of this contact.
public string $GivenName
return string

$SurName public property

The SurName of this contact.
public string $SurName
return string

$TelephoneNumber public property

The TelephoneNumbers of this contact.
public array $TelephoneNumber
return array

$contactType public property

The contact type.
public string $contactType
return string