Maileon PHP client  1.2.5
Easily integrate your PHP application with Maileon.
Blacklist.php
1 <?php
2 
7 {
12  public $id;
13 
18  public $name;
19 
24  public $entries;
25 
30  function toString()
31  {
32  return "Blacklist [id=" . $this->id . ", name=" . $this->id . ", entries=[" . (is_array($this->entries) ? implode(", ", $this->entries) : "") . "]]";
33  }
34 
41  function fromXML($xmlElement)
42  {
43  if (isset($xmlElement->id)) $this->id = $xmlElement->id;
44  if (isset($xmlElement->name)) $this->name = $xmlElement->name;
45 
46  if (isset($xmlElement->entries)) {
47  $this->entries = array();
48  foreach ($xmlElement->entries->children() as $entry) {
49  $this->entries[] = $entry;
50  }
51  }
52  }
53 
54  function toXML()
55  {
56  // not supported
57  }
58 }