Line 70... |
Line 70... |
70 |
|
70 |
|
71 |
public function getUrlCettePage() {
|
71 |
public function getUrlCettePage() {
|
72 |
return $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
72 |
return $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
Line -... |
Line 73... |
- |
|
73 |
}
|
- |
|
74 |
|
- |
|
75 |
public static function getUrlConfirmationInscriptionAdmin($code_confirmation_inscription) {
|
- |
|
76 |
|
- |
|
77 |
$url_cette_page = 'http://'.$_SERVER['SERVER_NAME'].str_replace('annuaire_utilisateur','annuaire_admin',$_SERVER['REQUEST_URI']);
|
- |
|
78 |
$base_url = new URL($url_cette_page);
|
- |
|
79 |
$base_url->setVariablesRequete(array());
|
- |
|
80 |
$base_url->setVariableRequete('m','annuaire_inscription_confirmation_admin');
|
- |
|
81 |
$base_url->setVariableRequete('id',$code_confirmation_inscription);
|
- |
|
82 |
|
- |
|
83 |
return $base_url->getURL();
|
- |
|
84 |
}
|
- |
|
85 |
|
- |
|
86 |
public static function getUrlConfirmationInscription($code_confirmation_inscription) {
|
- |
|
87 |
|
- |
|
88 |
$url_cette_page = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
- |
|
89 |
$base_url = new URL($url_cette_page);
|
- |
|
90 |
$base_url->setVariablesRequete(array());
|
- |
|
91 |
$base_url->setVariableRequete('m','annuaire_inscription_confirmation');
|
- |
|
92 |
$base_url->setVariableRequete('id',$code_confirmation_inscription);
|
- |
|
93 |
|
- |
|
94 |
return $base_url->getURL();
|
- |
|
95 |
}
|
- |
|
96 |
|
- |
|
97 |
public static function getUrlSuppressionInscriptionTemporaire($id_annuaire, $code_donnee_temporaire) {
|
- |
|
98 |
|
- |
|
99 |
$url_cette_page = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
- |
|
100 |
$base_url = new URL($url_cette_page);
|
- |
|
101 |
$base_url->setVariablesRequete(array());
|
- |
|
102 |
$base_url->setVariableRequete('m','annuaire_suppression_inscription_temp');
|
- |
|
103 |
$base_url->setVariableRequete('id',$code_donnee_temporaire);
|
- |
|
104 |
$base_url->setVariableRequete('id_annuaire',$id_annuaire);
|
- |
|
105 |
|
- |
|
106 |
return $base_url->getURL();
|
73 |
}
|
107 |
}
|
Line 74... |
Line 108... |
74 |
|
108 |
|
75 |
public static function getUrlConsultationProfil($id_annuaire, $id_utilisateur) {
|
109 |
public static function getUrlConsultationProfil($id_annuaire, $id_utilisateur) {
|
76 |
|
110 |
|
Line 526... |
Line 560... |
526 |
|
560 |
|
Line 527... |
Line 561... |
527 |
$valeurs = $this->AnnuaireModele->obtenirValeursUtilisateur($id_annuaire,$id, $champs_mappage[0]);
|
561 |
$valeurs = $this->AnnuaireModele->obtenirValeursUtilisateur($id_annuaire,$id, $champs_mappage[0]);
|
528 |
|
562 |
|
529 |
// TODO: valeurs incomplètes, voir ce qu'on renvoie obligatoirement
|
563 |
// TODO: valeurs incomplètes, voir ce qu'on renvoie obligatoirement
|
530 |
// et ce qu'on ne renvoie pas
|
564 |
// et ce qu'on ne renvoie pas
|
531 |
$valeurs = array('fullname' => $valeurs[$champs_mappage[0]['champ_nom']].' '.$valeurs[$champs_mappage[0]['champ_prenom']],
|
565 |
$valeurs = array('fullname' => $valeurs[$champs_mappage[0]['champ_prenom']].' '.$valeurs[$champs_mappage[0]['champ_nom']],
|
532 |
'nickname' => $valeurs[$champs_mappage[0]['champ_nom']],
|
566 |
'nickname' => $valeurs[$champs_mappage[0]['champ_nom']],
|
533 |
'dob' => '',
|
567 |
'dob' => '',
|
534 |
'email' => $valeurs[$champs_mappage[0]['champ_mail']],
|
568 |
'email' => $valeurs[$champs_mappage[0]['champ_mail']],
|