qualite = 1; } function set_quality_nonprofessional() { $this->qualite = 2; } function get_xml() { $xml = ''; $xml .= "\t" . '' . "\n"; if ($this->titre != '') { if ($this->titre == 'f') { $this->titre = 'mme'; } $xml .= "\t\t" . ''.clean_invalid_char($this->nom).'' . "\n"; } else { $xml .= "\t\t" . ''.clean_invalid_char($this->nom).'' . "\n"; } $xml .= "\t\t" . ''.clean_invalid_char($this->prenom).'' . "\n"; if ($this->societe != '') { $xml .= "\t\t" . ''.clean_invalid_char($this->societe).'' . "\n"; } if ($this->telhome != '') { $xml .= "\t\t" . ''.clean_invalid_char($this->telhome).'' . "\n"; } if ($this->teloffice != '') { $xml .= "\t\t" . ''.clean_invalid_char($this->teloffice).'' . "\n"; } if ($this->telmobile != '') { $xml .= "\t\t" . ''.clean_invalid_char($this->telmobile).'' . "\n"; } if ($this->telfax != '') { $xml .= "\t\t" . ''.clean_invalid_char($this->telfax).'' . "\n"; } if ($this->email != '') { $xml .= "\t\t" . ''.clean_invalid_char($this->email).'' . "\n"; } if ($this->site_conso != null) { $xml .= $this->site_conso->get_xml(); } $xml .= "\t" . '' . "\n"; return ($xml); } }