name != null)
{
$nb = '';
$prixunit = '';
if ($this->type != null)
{
$type = ' type="'.$this->type.'"';
}
else
{
fianet_insert_log("fianet_product_xml.php - get_xml()
\nproduct type is missing");
return;
}
if ($this->ref != null)
{
$ref = ' ref="'.clean_invalid_char($this->ref).'"';
}
else
{
fianet_insert_log("fianet_product_xml.php - get_xml()
\nproduct ref is missing");
return;
}
if ($this->nb != null)
{
$nb = ' nb="'.$this->nb.'"';
}
if ($this->prixunit != null)
{
$prixunit = ' prixunit="'.number_format($this->prixunit, 2, '.', '').'"';
}
$xml .= "\t\t\t".clean_invalid_char($this->name)."\n";
}
else
{
fianet_insert_log("fianet_product_xml.php - get_xml()
\nproduct name is missing");
return;
}
return ($xml);
}
}