function get_xml() { $xml = ''; $xml .= "\t\t" . '<appartement>' . "\n"; if ($this->digicode1 != '') { $xml .= "\t\t\t" . '<digicode1>' . clean_invalid_char($this->digicode1) . '</digicode1>' . "\n"; } if ($this->digicode2 != '') { $xml .= "\t\t\t" . '<digicode2>' . clean_invalid_char($this->digicode2) . '</digicode2>' . "\n"; } if ($this->escalier != '') { $xml .= "\t\t\t" . '<escalier>' . clean_invalid_char($this->escalier) . '</escalier>' . "\n"; } if ($this->etage != '') { $xml .= "\t\t\t" . '<etage>' . clean_invalid_char($this->etage) . '</etage>' . "\n"; } if ($this->nporte != '') { $xml .= "\t\t\t" . '<nporte>' . clean_invalid_char($this->nporte) . '</nporte>' . "\n"; } if ($this->batiment != '') { $xml .= "\t\t\t" . '<batiment>' . clean_invalid_char($this->batiment) . '</batiment>' . "\n"; } $xml .= "\t\t" . '</appartement>' . "\n"; return $xml; }
function get_xml() { $xml = ''; if ($this->name != null) { $nb = ''; $prixunit = ''; if ($this->type != null) { $type = ' type="' . $this->type . '"'; } else { fianet_insert_log("fianet_product_xml.php - get_xml() <br />\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() <br />\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<produit{$type}{$ref}{$nb}{$prixunit}>" . clean_invalid_char($this->name) . "</produit>\n"; } else { fianet_insert_log("fianet_product_xml.php - get_xml() <br />\nproduct name is missing"); return; } return $xml; }
function get_xml() { $xml = ''; if ($this->type != null) { $xml .= "\t" . '<adresse type="' . $this->type . '" format="' . $this->format . '">' . "\n"; if ($this->rue1 != '') { $xml .= "\t\t" . '<rue1>' . clean_invalid_char($this->rue1) . '</rue1>' . "\n"; } else { fianet_insert_log("fianet_adress_xml.php - get_xml() <br />\n rue1 is undefined"); return; } if ($this->rue2 != "") { $xml .= "\t\t" . '<rue2>' . clean_invalid_char($this->rue2) . '</rue2>' . "\n"; } if ($this->cpostal != "") { $xml .= "\t\t" . '<cpostal>' . clean_invalid_char($this->cpostal) . '</cpostal>' . "\n"; } else { fianet_insert_log("fianet_adress_xml.php - get_xml() <br />\n cpostal is undefined"); return; } if ($this->ville != "") { $xml .= "\t\t" . '<ville>' . clean_invalid_char($this->ville) . '</ville>' . "\n"; } else { fianet_insert_log("fianet_adress_xml.php - get_xml() <br />\n ville is undefined"); return; } if ($this->pays != "") { $xml .= "\t\t" . '<pays>' . clean_invalid_char($this->pays) . '</pays>' . "\n"; } else { fianet_insert_log("fianet_adress_xml.php - get_xml() <br />\n pays is undefined"); return; } if ($this->appartement != null) { if (var_is_object_of_class($this->appartement, 'fianet_appartment_xml')) { $xml .= $this->appartement->get_xml(); } else { fianet_insert_log("fianet_adress_xml.php - get_xml() <br />\nAppartement is not an object of type fianet_appartment_xml"); } } $xml .= "\t" . '</adresse>' . "\n"; } return $xml; }
function get_xml() { $xml = ''; if ($this->type == null) { fianet_insert_log("fianet_transport_xml.php - get_xml() <br />\nTransport type undefined"); return; } if ($this->nom == null) { fianet_insert_log("fianet_transport_xml.php - get_xml() <br />\nTransport name undefined"); return; } if ($this->rapidite == null) { fianet_insert_log("fianet_transport_xml.php - get_xml() <br />\nTransport time undefined"); return; } $xml .= "\t\t" . '<transport>' . "\n"; $xml .= "\t\t\t" . '<type>' . $this->type . '</type>' . "\n"; $xml .= "\t\t\t" . '<nom>' . clean_invalid_char($this->nom) . '</nom>' . "\n"; $xml .= "\t\t\t" . '<rapidite>' . $this->rapidite . '</rapidite>' . "\n"; $xml .= "\t\t" . '</transport>' . "\n"; return $xml; }
function get_xml() { $xml = ''; $xml .= "\t" . '<utilisateur type="' . $this->type . '" qualite="' . $this->qualite . '">' . "\n"; if ($this->titre != '') { if ($this->titre == 'f') { $this->titre = 'mme'; } $xml .= "\t\t" . '<nom titre="' . $this->titre . '">' . clean_invalid_char($this->nom) . '</nom>' . "\n"; } else { $xml .= "\t\t" . '<nom>' . clean_invalid_char($this->nom) . '</nom>' . "\n"; } $xml .= "\t\t" . '<prenom>' . clean_invalid_char($this->prenom) . '</prenom>' . "\n"; if ($this->societe != '') { $xml .= "\t\t" . '<societe>' . clean_invalid_char($this->societe) . '</societe>' . "\n"; } if ($this->telhome != '') { $xml .= "\t\t" . '<telhome>' . clean_invalid_char($this->telhome) . '</telhome>' . "\n"; } if ($this->teloffice != '') { $xml .= "\t\t" . '<teloffice>' . clean_invalid_char($this->teloffice) . '</teloffice>' . "\n"; } if ($this->telmobile != '') { $xml .= "\t\t" . '<telmobile>' . clean_invalid_char($this->telmobile) . '</telmobile>' . "\n"; } if ($this->telfax != '') { $xml .= "\t\t" . '<telfax>' . clean_invalid_char($this->telfax) . '</telfax>' . "\n"; } if ($this->email != '') { $xml .= "\t\t" . '<email>' . clean_invalid_char($this->email) . '</email>' . "\n"; } if ($this->site_conso != null) { $xml .= $this->site_conso->get_xml(); } $xml .= "\t" . '</utilisateur>' . "\n"; return $xml; }