Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 163 Rev 215
Line 55... Line 55...
55
	public function etreTypeDeRelations($aTester) {
55
	public function etreTypeDeRelations($aTester) {
56
		$typesRelations = array('synonymie', 'homonymie', 'flores');
56
		$typesRelations = array('synonymie', 'homonymie', 'flores');
57
		$etreRelationsType = in_array($aTester, $typesRelations) ? true : false;
57
		$etreRelationsType = in_array($aTester, $typesRelations) ? true : false;
58
		return $etreRelationsType;
58
		return $etreRelationsType;
59
	}
59
	}
-
 
60
 
-
 
61
	public function getServiceClasse() {
-
 
62
		$classeNom = '';
-
 
63
		if ($this->getNombre() == 2) {
-
 
64
			if ($this->getServiceNom() == 'noms') {
-
 
65
				$classeNom = 'NomsListe';
-
 
66
			} else if ($this->getServiceNom() == 'taxons') {
-
 
67
				$classeNom = 'TaxonsListe';
-
 
68
			}
-
 
69
 
-
 
70
		} else if ($this->getNombre() == 3) {
-
 
71
			$position3 = $this->getParPosition(2);
-
 
72
			if ($this->etreId($position3)) {
-
 
73
				if ($this->getServiceNom() == 'noms') {
-
 
74
					$classeNom = 'NomDetails';
-
 
75
				} else if ($this->getServiceNom() == 'taxons') {
-
 
76
					$classeNom = 'TaxonDetails';
-
 
77
				}
-
 
78
			}
-
 
79
		} else if ($this->getNombre() == 4) {
-
 
80
			$position3 = $this->getParPosition(2);
-
 
81
			$position4 = $this->getParPosition(3);
-
 
82
			if ($this->etreStats($position3)) {
-
 
83
				if ($this->etreTypeDeStats($position4)) {
-
 
84
					$classeNom = 'NomsStats'.ucfirst($position4);
-
 
85
				}
-
 
86
			} else if ($this->etreId($position3)) {
-
 
87
				if ($this->etreRelations($position4)) {
-
 
88
					$classeNom = 'NomRelations';
-
 
89
				}
-
 
90
			}
-
 
91
		} else if ($this->getNombre() == 5) {
-
 
92
			$position3 = $this->getParPosition(2);
-
 
93
			$position4 = $this->getParPosition(3);
-
 
94
			$position5 = $this->getParPosition(4);
-
 
95
			if ($this->etreId($position3)) {
-
 
96
				if ($this->etreRelations($position4)) {
-
 
97
					if ($this->etreTypeDeRelations($position5)) {
-
 
98
						$classeNom = 'NomRelations'.ucfirst($position5);
-
 
99
					}
-
 
100
				}
-
 
101
			}
-
 
102
		}
-
 
103
		return $classeNom;
-
 
104
	}
60
}
105
}
61
?>
106
?>
62
107