Subversion Repositories eFlore/Applications.del

Rev

Rev 983 | Rev 1875 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 983 Rev 1823
Line 193... Line 193...
193
 
193
 
194
		$autorisation = (in_array($courriel, $courriels_autorises)) ? true : false ;
194
		$autorisation = (in_array($courriel, $courriels_autorises)) ? true : false ;
195
		return $autorisation;
195
		return $autorisation;
Line 196... Line -...
196
	}
-
 
197
	
-
 
198
	protected function recupererUtilisateursIdentite(Array $courriels) {
-
 
199
		// Récupération des données au format Json
-
 
200
		$service = "utilisateur/identite-par-courriel/".implode(',', $courriels);
-
 
201
		$url = sprintf($this->config['chemins']['baseURLServicesAnnuaireTpl'], $service);
-
 
202
		$json = $this->getDao()->consulter($url);
-
 
203
		$utilisateurs = json_decode($json);
-
 
204
		foreach ($courriels as $courriel) {
-
 
205
			$info = array('id' => null, 'intitule' => '');
-
 
206
			if (isset($utilisateurs->$courriel)) {
-
 
207
				$info['intitule'] = $utilisateurs->$courriel->intitule;
-
 
208
				$info['id'] = $utilisateurs->$courriel->id;
-
 
209
			} else {
-
 
210
				$info['intitule'] = $this->tronquerCourriel($courriel);
-
 
211
			}
-
 
212
			$noms[$courriel] = $info;
-
 
213
		}	
-
 
214
		return $noms;
-
 
215
	}
196
	}
216
	
197
	
Line 217... Line 198...
217
	//+----------------------------------------------------------------------------------------------------------------+
198
	//+----------------------------------------------------------------------------------------------------------------+
218
	// GESTION de l'ENVOIE au NAVIGATEUR
199
	// GESTION de l'ENVOIE au NAVIGATEUR