Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 559 Rev 921
Line 64... Line 64...
64
			$servicesDispo = $this->getParametreTableau('servicesDispo');
64
			$servicesDispo = $this->getParametreTableau('servicesDispo');
65
			$this->partages['RessourcesVerificateur'] = new RessourcesVerificateur($ressources, $projetsDispo, $servicesDispo);
65
			$this->partages['RessourcesVerificateur'] = new RessourcesVerificateur($ressources, $projetsDispo, $servicesDispo);
66
		}
66
		}
67
		return $this->partages['RessourcesVerificateur'];
67
		return $this->partages['RessourcesVerificateur'];
68
	}
68
	}
69
	
69
 
70
	public function getUrlFormatage() {
70
	public function getUrlFormatage() {
71
		if (!isset($this->partages['UrlFormatage'])){
71
		if (!isset($this->partages['UrlFormatage'])){
72
			$Bdd = $this->getBdd();
72
			$Bdd = $this->getBdd();
73
			$this->partages['UrlFormatage'] = new UrlFormatage($Bdd);
73
			$this->partages['UrlFormatage'] = new UrlFormatage($Bdd);
74
		}
74
		}
75
		return $this->partages['UrlFormatage'];
75
		return $this->partages['UrlFormatage'];
76
	}
76
	}
77
	
77
 
78
	public function getRequetesAssemblage() {
78
	public function getRequetesAssemblage() {
79
		if (!isset($this->partages['RequetesAssemblage'])){
79
		if (!isset($this->partages['RequetesAssemblage'])){
80
			$this->partages['RequetesAssemblage'] =  new RequetesAssemblage($this->getBdd());
80
			$this->partages['RequetesAssemblage'] =  new RequetesAssemblage($this->getBdd());
81
		}
81
		}
82
		return $this->partages['RequetesAssemblage'];
82
		return $this->partages['RequetesAssemblage'];
83
	}
83
	}
84
	
84
 
Line 85... Line 85...
85
 
85
 
86
	public function getVersionVerificateur() {
86
	public function getVersionVerificateur() {
87
		if (!isset($this->partages['VersionVerificateur'])){
87
		if (!isset($this->partages['VersionVerificateur'])){
88
			$ressources = $this->getRessourcesUrl();
88
			$ressources = $this->getRessourcesUrl();
Line 114... Line 114...
114
			$this->partages['Versions'] = $versions;
114
			$this->partages['Versions'] = $versions;
115
		}
115
		}
116
		return $this->partages['Versions'];
116
		return $this->partages['Versions'];
117
	}
117
	}
Line 118... Line -...
118
 
-
 
119
	public function getProjet() {
-
 
120
		if (!isset($this->partages['Projet'])){
-
 
121
			$ressources = $this->getRessourcesUrl();
-
 
122
			$projet = new Projet($ressources);
-
 
123
			$projet->setCheminBase($this->getParametre('cheminBase'));
-
 
124
			$projet->setCheminConfig($this->getParametre('chemin_configurations'));
-
 
125
			$projet->setCheminBiblio($this->getParametre('chemin_bibliotheque'));
-
 
126
			$projet->initialiser();
-
 
127
			$projet->setParamsVerif($this->getParametresUrlVerificateur());
-
 
128
			$projet->setRessourcesVerif($this->getRessourcesUrlVerificateur());
-
 
129
			$projet->setVersionVerif($this->getVersionVerificateur());
-
 
130
			$projet->setServiceGenerique($this->getServiceGenerique());
-
 
131
			$this->partages['Projet'] = $projet;
-
 
132
		}
-
 
133
		return $this->partages['Projet'];
-
 
134
	}
-
 
135
 
-
 
136
	public function getNomDao() {
-
 
137
		$ressources = $this->getRessourcesUrl();
-
 
138
		$parametres = $this->getParametresUrl();
-
 
139
		$bdd = $this->getBdd();
-
 
140
		$versions = $this->getVersions();
-
 
141
		$nomDao = new NomDAO($ressources, $parametres, $bdd, $versions);
-
 
142
		return $nomDao;
-
 
143
	}
-
 
144
 
-
 
145
	public function getOntologiesDao() {
-
 
146
		$ressources = $this->getRessourcesUrl();
-
 
147
		$parametres = $this->getParametresUrl();
-
 
148
		$bdd = $this->getBdd();
-
 
149
		$versions = $this->getVersions();
-
 
150
		$ontologieDao = new OntologieDAO($ressources, $parametres, $bdd, $versions);
-
 
151
		return $ontologieDao;
-
 
152
	}
-
 
153
 
-
 
154
	public function getNomFormateur() {
-
 
155
		$formateur = new NomFormateur();
-
 
156
		$formateur->setBdd($this->getBdd());
-
 
157
		$formateur->setChampsProjet($this->getParametreTableau('champsProjet'));
-
 
158
		$formateur->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
-
 
159
		$formateur->setOntologieHrefTpl($this->getParametre('ontologieHrefTpl'));
-
 
160
		return $formateur;
-
 
161
	}
-
 
162
 
-
 
163
	public function getOntologiesFormateur() {
-
 
164
		$formateur = new OntologieFormateur();
-
 
165
		$formateur->setBdd($this->getBdd());
-
 
166
		$formateur->setChampsProjet($this->getParametreTableau('champsProjet'));
-
 
167
		$formateur->setDetailsHrefTpl($this->getParametre('detailsHrefOntologiesTpl'));
-
 
168
		$formateur->setLangueDemandee($this->getParametresUrl()->get('retour.langue'));
-
 
169
		return $formateur;
-
 
170
	}
-
 
171
 
118
 
172
	public function getWikipediaBot($options = array()) {
119
	public function getWikipediaBot($options = array()) {
173
		$wpBot = new WikipediaBot($options);
120
		$wpBot = new WikipediaBot($options);
174
		return $wpBot;
121
		return $wpBot;