list = new fianet_product_list_xml();
$this->transport = new fianet_transport_xml();
$this->siteid = FIANET_SAC_SITE_ID;
}
function get_xml()
{
$xml = '';
if (!($this->siteid != "" && $this->refid != "" && $this->montant > 0 && $this->devise != ""))
{
fianet_insert_log("fianet_info_order_xml.php - get_xml()
Somes values are undefined\n");
}
if ($this->transport == null)
{
fianet_insert_log("fianet_info_order_xml.php - get_xml()
Transport is undefined\n");
}
if ($this->list == null)
{
fianet_insert_log("fianet_info_order_xml.php - get_xml()
List products is undefined\n");
}
$xml .= "\t" . '' . "\n";
$xml .= "\t\t" . ''.$this->siteid.'' . "\n";
$xml .= "\t\t" . ''.$this->refid.'' . "\n";
$xml .= "\t\t" . ''.number_format($this->montant, 2, '.', '').'' . "\n";
if ($this->ip != null && $this->timestamp != null)
{
$xml .= "\t\t" . ''.$this->ip.'' . "\n";
}
$xml .= $this->transport->get_xml();
$xml .= $this->list->get_xml();
$xml .= "\t" . '' . "\n";
return ($xml);
}
}