Maileon PHP client  1.5.0
Easily integrate your PHP application with Maileon.
ReportContact.php
1 <?php
2 
10 {
11 
18  public $fieldBackups = array();
19 
24  function __construct($contact = null)
25  {
26  if (isset($contact)) {
27  $this->anonymous = $contact->anonymous;
28  $this->email = $contact->email;
29  $this->external_id = $contact->external_id;
30  $this->id = $contact->id;
31  $this->created = $contact->created;
32  $this->updated = $contact->updated;
33  $this->standard_fields = $contact->standard_fields;
34  $this->custom_fields = $contact->custom_fields;
35  }
36  }
37 
44  function fromXML($xmlElement)
45  {
46  parent::fromXML($xmlElement);
47 
48  if (isset($xmlElement->permissionType)) $this->permission = com_maileon_api_contacts_Permission::getPermission($xmlElement->permissionType);
49  if (isset($xmlElement->field_backups)) $this->fieldBackups = com_maileon_api_xml_XMLDeserializer::deserialize($xmlElement->field_backups);
50  }
51 }