Maileon PHP client  1.5.0
Easily integrate your PHP application with Maileon.
ProcessingReports.php
1 <?php
13  public $reports = array();
14 
15  function fromArray($object_vars) {
16  if(!property_exists($object_vars, 'reports')) {
17  trigger_error( __CLASS__ . "->" . __FUNCTION__ . ": failed to initialize object; passed object doesn't have a 'reports' property");
18  return;
19  }
20 
21  foreach($object_vars->reports as $report) {
23  $reportObject->fromArray($report);
24 
25  $this->reports []= $reportObject;
26  }
27  }
28 }