Subversion Repositories Applications.annuaire

Rev

Rev 143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 143 Rev 147
Line 23... Line 23...
23
		$this->chargerModele('MetadonneeModele');
23
		$this->chargerModele('MetadonneeModele');
24
		$data['erreurs'] = array();
24
		$data['erreurs'] = array();
25
		$data['champs_mappage'] = $this->obtenirChampsMappageAnnuaire($id);
25
		$data['champs_mappage'] = $this->obtenirChampsMappageAnnuaire($id);
26
		$data['annuaire'] = $this->AnnuaireModele->chargerAnnuaire($id, true);
26
		$data['annuaire'] = $this->AnnuaireModele->chargerAnnuaire($id, true);
27
		$data['metadonnees'] = $this->MetadonneeModele->chargerListeMetadonneeAnnuaire($id);
27
		$data['metadonnees'] = $this->MetadonneeModele->chargerListeMetadonneeAnnuaire($id);
28
		$annuaire = $this->getVue(Config::get('dossier_squelettes_annuaires').'annuaire', $data);
28
		$annuaire = $this->getVue(Config::get('dossier_squelettes_gestion_annuaires').'annuaire', $data);
Line 29... Line 29...
29
 
29
 
30
		return $annuaire;
30
		return $annuaire;
Line 31... Line 31...
31
	}
31
	}
Line 124... Line 124...
124
			$this->chargerModele('MetadonneeModele');
124
			$this->chargerModele('MetadonneeModele');
125
			$this->MetadonneeModele->modifierMetadonnee($valeurs);
125
			$this->MetadonneeModele->modifierMetadonnee($valeurs);
126
		} else  {
126
		} else  {
127
			return $this->afficherFormulaireModificationMetadonnee($valeurs);
127
			return $this->afficherFormulaireModificationMetadonnee($valeurs);
128
		}
128
		}
-
 
129
		
129
		return $this->chargerAnnuaire($valeurs['amc_ce_annuaire']);
130
		return $this->chargerAnnuaire($valeurs['amc_ce_annuaire']);
130
	}
131
	}
Line 131... Line 132...
131
 
132
 
132
	/**
133
	/**
Line 142... Line 143...
142
			return false;
143
			return false;
143
		}
144
		}
144
		return $this->chargerAnnuaire($id_annuaire);
145
		return $this->chargerAnnuaire($id_annuaire);
145
	}
146
	}
Line -... Line 147...
-
 
147
	
-
 
148
	public function obtenirIdChampMetadonneeParAbreviation($id_annuaire, $abreviation) {
-
 
149
		if(!$id_annuaire || !$abreviation) {
-
 
150
			return false;
-
 
151
		} else  {
-
 
152
			$this->chargerModele('MetadonneeModele');
-
 
153
			return $this->MetadonneeModele->obtenirIdChampMetadonneeParAbreviation($id_annuaire, $abreviation);
-
 
154
		}
-
 
155
	}
146
 
156