Maileon PHP client
1.5.5
Easily integrate your PHP application with Maileon.
Main Page
Related Pages
Classes
Files
File List
CustomProperty.php
1
<?php
2
8
class
com_maileon_api_mailings_CustomProperty
extends
com_maileon_api_xml_AbstractXMLWrapper
9
{
10
public
$key;
11
public
$value;
12
19
function
__construct
(
20
$key = null,
21
$value = null)
22
{
23
$this->key = $key;
24
$this->value = $value;
25
}
26
33
function
fromXML
($xmlElement)
34
{
35
if
(isset($xmlElement->key)) { $this->key = (string)$xmlElement->key; }
36
if
(isset($xmlElement->value)) { $this->value = (string)$xmlElement->value; }
37
}
38
44
function
toXML
() {
45
$xml =
new
SimpleXMLElement(
"<?xml version=\"1.0\"?><property></property>"
);
46
47
$xml->addChild(
"key"
, $this->key);
48
$xml->addChild(
"value"
, $this->value);
49
50
return
$xml;
51
}
52
59
function
toString
()
60
{
61
return
"CustomProperty [key="
. $this->key .
", "
62
.
"value="
. $this->value .
"]"
;
63
}
64
}
com_maileon_api_mailings_CustomProperty\__construct
__construct($key=null, $value=null)
Definition:
CustomProperty.php:19
com_maileon_api_xml_AbstractXMLWrapper
Definition:
AbstractXMLWrapper.php:9
com_maileon_api_mailings_CustomProperty\toString
toString()
Definition:
CustomProperty.php:59
com_maileon_api_mailings_CustomProperty
Definition:
CustomProperty.php:8
com_maileon_api_mailings_CustomProperty\toXML
toXML()
Definition:
CustomProperty.php:44
com_maileon_api_mailings_CustomProperty\fromXML
fromXML($xmlElement)
Definition:
CustomProperty.php:33
client
com
maileon
api
mailings
CustomProperty.php
Generated on Mon Jan 20 2020 09:32:53 for Maileon PHP client by
1.8.9.1