type = "xml"; } /** * Format the array parameter to a xml valid format. TODO: Need to find out a better way to do it. */ protected function format(array $message) { if (empty($message)){ return ; } if (is_array($message)){ $xml = ""; foreach($message as $index => $data) { $xml .= "<" . $index . ">" . $data . ""; } $xml .= ""; } return $xml; } } ?>