| Line 18... |
Line 18... |
| 18 |
if (empty($parametre) === false) {
|
18 |
if (empty($parametre) === false) {
|
| 19 |
$tableauPartiel = explode(',', $parametre);
|
19 |
$tableauPartiel = explode(',', $parametre);
|
| 20 |
$tableauPartiel = array_map('trim', $tableauPartiel);
|
20 |
$tableauPartiel = array_map('trim', $tableauPartiel);
|
| 21 |
foreach ($tableauPartiel as $champ) {
|
21 |
foreach ($tableauPartiel as $champ) {
|
| 22 |
if (strpos($champ, '=') === false) {
|
22 |
if (strpos($champ, '=') === false) {
|
| 23 |
$tableau[] = $champ;
|
23 |
$tableau[] = trim($champ);
|
| 24 |
} else {
|
24 |
} else {
|
| 25 |
list($cle, $val) = explode('=', $champ);
|
25 |
list($cle, $val) = explode('=', $champ);
|
| 26 |
$tableau[$cle] = $val;
|
26 |
$tableau[trim($cle)] = trim($val);
|
| 27 |
}
|
27 |
}
|
| 28 |
}
|
28 |
}
|
| 29 |
}
|
29 |
}
|
| 30 |
return $tableau;
|
30 |
return $tableau;
|
| 31 |
}
|
31 |
}
|
| Line 91... |
Line 91... |
| 91 |
|
91 |
|
| 92 |
public function getService($classe) {
|
92 |
public function getService($classe) {
|
| 93 |
$service = new $classe($this->getRessourcesUrl(), $this->getParametresUrl(), $this->getBdd());
|
93 |
$service = new $classe($this->getRessourcesUrl(), $this->getParametresUrl(), $this->getBdd());
|
| 94 |
if ($service instanceof NomDetails) {
|
94 |
if ($service instanceof NomDetails) {
|
| 95 |
$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
|
95 |
$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
|
| 96 |
$service->setChampsProjets($this->getParametreTableau('champsProjets'));
|
96 |
$service->setChampsProjets($this->getParametreTableau('champsProjet'));
|
| 97 |
$service->setOntologieHrefTpl($this->getParametre('ontologieHrefTpl'));
|
97 |
$service->setOntologieHrefTpl($this->getParametre('ontologieHrefTpl'));
|
| 98 |
} else if ($service instanceof NomsListe) {
|
98 |
} else if ($service instanceof NomsListe) {
|
| 99 |
$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
|
99 |
$service->setDetailsHrefTpl($this->getParametre('detailsHrefTpl'));
|
| 100 |
$service->setListeUrl($this->getParametre('listeUrl'));
|
100 |
$service->setListeUrl($this->getParametre('listeUrl'));
|