Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 791 Rev 792
Line 63... Line 63...
63
		if ($this->avoirRessources()) {
63
		if ($this->avoirRessources()) {
64
			if ($this->avoirRessourceProjet()) {
64
			if ($this->avoirRessourceProjet()) {
65
				$this->chargerNomDuService(); // défini $this->serviceNom
65
				$this->chargerNomDuService(); // défini $this->serviceNom
66
				$this->initialiserProjet(); // autoload defined here
66
				$this->initialiserProjet(); // autoload defined here
67
				if ($this->avoirRessourceService()) {
67
				if ($this->avoirRessourceService()) {
68
					$this->classe = self::definirClasseNeeded($this->projetNom, $this->serviceNom);
68
					$this->classe = self::debusquerClasse($this->projetNom, $this->serviceNom);
69
					$retour = $this->initialiserService();
69
					$retour = $this->initialiserService();
70
				}
70
				}
71
			}
71
			}
72
		}
72
		}
73
		return $retour;
73
		return $retour;
Line 144... Line 144...
144
	  PS: "Using two class with the same name"
144
	  PS: "Using two class with the same name"
145
	  http://stackoverflow.com/questions/4555186/using-two-class-with-the-same-name
145
	  http://stackoverflow.com/questions/4555186/using-two-class-with-the-same-name
146
	  > Stop.
146
	  > Stop.
147
	  > Whatever you are doing is wrong. Backup. Re-evaluate what you are doing and why.
147
	  > Whatever you are doing is wrong. Backup. Re-evaluate what you are doing and why.
148
	*/
148
	*/
149
	private static function definirClasseNeeded($p, $s) {
149
	private static function debusquerClasse($p, $s) {
150
		if($s != 'ontologies') return NULL;
150
		if($s != 'ontologies') return NULL;
Line 151... Line 151...
151
 
151
 
152
		switch($p) {
152
		switch($p) {
153
		case 'baseflor':
153
		case 'baseflor':