Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 201 Rev 207
Line 80... Line 80...
80
			$this->partages['Projet'] = $projet;
80
			$this->partages['Projet'] = $projet;
81
		}
81
		}
82
		return $this->partages['Projet'];
82
		return $this->partages['Projet'];
83
	}
83
	}
Line -... Line 84...
-
 
84
 
-
 
85
	public function getVersions() {
-
 
86
		if (!isset($this->partages['Versions'])){
-
 
87
			$parametres = $this->getParametresUrl();
-
 
88
			$bdd = $this->getBdd();
-
 
89
			$projetNom = $this->getProjet()->getNom();
-
 
90
			$versions = new Versions($parametres, $bdd, $projetNom);
-
 
91
			$this->partages['Versions'] = $versions;
-
 
92
		}
-
 
93
		return $this->partages['Versions'];
-
 
94
	}
84
 
95
 
85
	public function getBdd() {
96
	public function getBdd() {
86
		if (!isset($this->partages['Bdd'])){
97
		if (!isset($this->partages['Bdd'])){
87
			$this->partages['Bdd'] = new Bdd();
98
			$this->partages['Bdd'] = new Bdd();
88
		}
99
		}
89
		return $this->partages['Bdd'];
100
		return $this->partages['Bdd'];
Line 90... Line 101...
90
	}
101
	}
91
 
102
 
-
 
103
	public function getService($classe) {
92
	public function getService($classe) {
104
		$service = new $classe($this->getRessourcesUrl(), $this->getParametresUrl(), $this->getBdd());
93
		$service = new $classe($this->getRessourcesUrl(), $this->getParametresUrl(), $this->getBdd());
105
		$service->setProjet($this->getProjet()->getNom());
94
		if ($service instanceof NomDetails) {
106
		$service->setVersions($this->getVersions());
95
			$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
107
		$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
96
			$service->setChampsProjet($this->getParametreTableau('champsProjet'));
108
		$service->setChampsProjet($this->getParametreTableau('champsProjet'));
97
			$service->setOntologieHrefTpl($this->getParametre('ontologieHrefTpl'));
-
 
98
		} else if ($service instanceof NomsListe) {
109
		$service->setOntologieHrefTpl($this->getParametre('ontologieHrefTpl'));
99
			$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
110
		if ($service instanceof NomsListe) {
100
			$service->setListeUrl($this->getParametre('listeUrl'));
111
			$service->setListeUrl($this->getParametre('listeUrl'));
101
		}
112
		}
102
		return $service;
113
		return $service;