ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
EmailAddressSet.php
Go to the documentation of this file.
1<?php
2
4
7
21
27 private $emails;
28
34 function __construct(array $emails) {
35
36 $this->emails = $emails;
37
38 }
39
45 function getValue() {
46
47 return $this->emails;
48
49 }
50
70 function xmlSerialize(Writer $writer) {
71
72 foreach ($this->emails as $email) {
73
74 $writer->writeElement('{http://calendarserver.org/ns/}email-address', $email);
75
76 }
77
78 }
79
80}
An exception for terminatinating execution or to throw for unit testing.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
getValue()
Returns the email addresses.
The XML Writer class.
Definition: Writer.php:31
writeElement($name, $content=null)
Write a full element tag and it's contents.
Definition: Writer.php:189
Objects implementing XmlSerializable can control how they are represented in Xml.
if( $orgName !==null) if($spconfig->hasValue('contacts')) $email
Definition: metadata.php:201