Maileon PHP client  1.5.5
Easily integrate your PHP application with Maileon.
Open.php
1 <?php
2 
9 {
13  public $timestamp;
14 
18  public $contact;
19 
23  public $mailingId;
24 
29  function toString()
30  {
31  return "Open [timestamp=" . $this->timestamp .
32  ", contact=" . $this->contact->toString() .
33  ", mailingId=" . $this->mailingId . "]";
34  }
35 
40  function toCsvString()
41  {
42  return $this->timestamp .
43  ";" . $this->contact->toCsvString() .
44  ";" . $this->mailingId;
45  }
46 
53  function fromXML($xmlElement)
54  {
55  $this->contact = new com_maileon_api_reports_ReportContact();
56  $this->contact->fromXML($xmlElement->contact);
57 
58  if (isset($xmlElement->mailing_id)) $this->mailingId = $xmlElement->mailing_id;
59  if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
60  }
61 
68  function toXML()
69  {
70  // Not implemented yet.
71  }
72 }
fromXML($xmlElement)
Definition: Open.php:53