![]() |
Maileon PHP client
1.2.5
Easily integrate your PHP application with Maileon.
|
Public Member Functions | |
__construct ($id=null, $email=null, $permission=NULL, $external_id=-1, $anonymous=false, $standard_fields=array(), $custom_fields=array(), $created=null, $updated=null) | |
fromXML ($xmlElement) | |
toXML ($addXMLDeclaration=true) | |
toXMLString () | |
toString () | |
toCsvString () | |
![]() | |
fromXML ($xmlElement) | |
fromXMLString ($xmlString) | |
toXML () | |
toXMLString () | |
toString () | |
Public Attributes | |
$id | |
$permission | |
$external_id | |
$anonymous | |
$created | |
$updated | |
$standard_fields | |
$custom_fields | |
The wrapper class for a Maileon contact. This class wraps the XML structure.
Definition at line 9 of file Contact.php.
com_maileon_api_contacts_Contact::__construct | ( | $id = null , |
|
$email = null , |
|||
$permission = NULL , |
|||
$external_id = -1 , |
|||
$anonymous = false , |
|||
$standard_fields = array() , |
|||
$custom_fields = array() , |
|||
$created = null , |
|||
$updated = null |
|||
) |
Constructor initializing default values.
number | $id | The Maileon contact id. |
string | The email-address of the contact. | |
string | $permission | The permission code. 1 = NONE, 2 = SOI, 3 = COI, 4 = DOI, 5 = DOI+, 6 = OTHER. |
string | $external_id | The external id to identify the contact. |
boolean | $anonymous | |
array | $standard_fields | An array of standard fields. |
array | $custom_fields | An array of custom fields of the contact. |
Definition at line 38 of file Contact.php.
com_maileon_api_contacts_Contact::fromXML | ( | $xmlElement | ) |
Initialization of the contact from a simple xml element.
SimpleXMLElement | $xmlElement | The xml element that is used to parse the contact from. |
Definition at line 66 of file Contact.php.
com_maileon_api_contacts_Contact::toXML | ( | $addXMLDeclaration = true | ) |
Serialization to a simple XML element.
bool | $addXMLDeclaration |
Definition at line 101 of file Contact.php.
com_maileon_api_contacts_Contact::toXMLString | ( | ) |
Serialization to a simple XML element as string
Definition at line 153 of file Contact.php.
com_maileon_api_contacts_Contact::toString | ( | ) |
Human readable representation of this wrapper.
Definition at line 165 of file Contact.php.
com_maileon_api_contacts_Contact::toCsvString | ( | ) |
CSV representation of this wrapper.
Definition at line 203 of file Contact.php.