| Line 91... |
Line 91... |
| 91 |
private function analyserRessources() {
|
91 |
private function analyserRessources() {
|
| 92 |
if ($this->methode == 'consulter') {
|
92 |
if ($this->methode == 'consulter') {
|
| 93 |
if (!isset($this->ressources) || empty($this->ressources)) {
|
93 |
if (!isset($this->ressources) || empty($this->ressources)) {
|
| 94 |
$this->sousServiceNom = 'liste-commentaires';
|
94 |
$this->sousServiceNom = 'liste-commentaires';
|
| 95 |
} else if (isset($this->ressources[0]) && count($this->ressources) == 1 && is_numeric($this->ressources[0])) {
|
95 |
} else if (isset($this->ressources[0]) && count($this->ressources) == 1 && is_numeric($this->ressources[0])) {
|
| 96 |
$this->sousServiceNom = 'consulter-commentaire';
|
96 |
$this->sousServiceNom = 'commentaire-details';
|
| 97 |
}
|
97 |
}
|
| 98 |
} else if ($this->methode == 'ajouter') {
|
98 |
} else if ($this->methode == 'ajouter') {
|
| 99 |
$this->sousServiceNom = 'ajouter-commentaire';
|
99 |
$this->sousServiceNom = 'ajouter-commentaire';
|
| 100 |
} else if ($this->methode == 'supprimer') {
|
100 |
} else if ($this->methode == 'supprimer') {
|
| 101 |
if (isset($this->ressources[0]) && count($this->ressources) == 1 && is_numeric($this->ressources[0])) {
|
101 |
if (isset($this->ressources[0]) && count($this->ressources) == 1 && is_numeric($this->ressources[0])) {
|