ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
EmailAddressSet.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
20 class EmailAddressSet implements XmlSerializable {
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 }
if($orgName !==null) if($spconfig->hasValue('contacts')) $email
Definition: metadata.php:201
Objects implementing XmlSerializable can control how they are represented in Xml. ...
getValue()
Returns the email addresses.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
__construct(array $emails)
__construct
writeElement($name, $content=null)
Write a full element tag and it&#39;s contents.
Definition: Writer.php:189
The XML Writer class.
Definition: Writer.php:31