Maileon PHP client  1.5.0
Easily integrate your PHP application with Maileon.
Subscriber.php
1 <?php
2 
10 {
14  public $timestamp;
15 
19  public $contact;
20 
24  public $mailingId;
25 
30  function toString()
31  {
32  return "Subscriber [timestamp=" . $this->timestamp .
33  ", contact=" . $this->contact->toString() .
34  ", mailingId=" . $this->mailingId . "]";
35  }
36 
41  function toCsvString()
42  {
43  return $this->timestamp .
44  ";" . $this->contact->toCsvString() .
45  ";" . $this->mailingId;
46  }
47 
54  function fromXML($xmlElement)
55  {
56  $this->contact = new com_maileon_api_reports_ReportContact();
57  $this->contact->fromXML($xmlElement->contact);
58 
59  if (isset($xmlElement->mailing_id)) $this->mailingId = $xmlElement->mailing_id;
60  if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
61  }
62 
69  function toXML()
70  {
71  // Not implemented yet.
72  }
73 }