Maileon PHP client  1.5.5
Easily integrate your PHP application with Maileon.
UniqueConversion.php
1 <?php
2 
9 {
13  public $contactId;
14 
18  public $contactEmail;
19 
23  public $contactExternalId;
24 
28  public $revenue;
29 
33  public $countTotal;
34 
39  function toString()
40  {
41 
42  return "UniqueConversion [" .
43  "contactId=" . $this->contactId .
44  ", contactEmail=" . $this->contactEmail .
45  ", revenue=" . $this->revenue .
46  ", countTotal=" . $this->countTotal ."]";
47  }
48 
55  function fromXML($xmlElement)
56  {
57  if (isset($xmlElement->contact_id)) $this->contactId = $xmlElement->contact_id;
58  if (isset($xmlElement->contact_email)) $this->contactEmail = $xmlElement->contact_email;
59  if (isset($xmlElement->revenue)) $this->revenue = $xmlElement->revenue;
60  if (isset($xmlElement->count_total)) $this->countTotal = $xmlElement->count_total;
61  }
62 
67  function toCsvString()
68  {
69  return $this->contactId .
70  ";" . $this->contactEmail .
71  ";" . $this->revenue .
72  ";" . $this->countTotal;
73  }
74 
81  function toXML()
82  {
83  // Not implemented yet.
84  }
85 }