Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 212 Rev 215
Line 1... Line 1...
1
<?php
1
<?php
2
class NomDAO {
2
class NomDAO {
3
	private $bdd = null;
3
	private $bdd = null;
4
	private $projet = null;
-
 
5
	private $versions = null;
4
	private $versions = null;
Line 6... Line 5...
6
 
5
 
7
	public function __construct(Ressources $ressources, Parametres $parametres, Bdd $bdd, Projet $projet, Versions $versions) {
6
	public function __construct(Ressources $ressources, Parametres $parametres, Bdd $bdd, Versions $versions) {
8
		$this->ressources = $ressources;
7
		$this->ressources = $ressources;
9
		$this->parametres = $parametres;
8
		$this->parametres = $parametres;
10
		$this->bdd = $bdd;
-
 
11
		$this->projet = $projet;
9
		$this->bdd = $bdd;
12
		$this->versions = $versions;
10
		$this->versions = $versions;
Line 13... Line 11...
13
	}
11
	}
14
 
12
 
15
	private function getTable() {
13
	private function getTable() {
16
		$versions = $this->versions->getVersions();
14
		$versions = $this->versions->getVersions();
17
		$derniereVersion = end($versions);
15
		$derniereVersion = end($versions);
18
		$projetNom = $this->projet->getNom();
16
		$projetNom = strtolower($this->ressources->getProjetNom());
Line 19... Line 17...
19
		return $projetNom.'_v'.$derniereVersion;
17
		return $projetNom.'_v'.$derniereVersion;
20
	}
18
	}