| Line 82... |
Line 82... |
| 82 |
$resultat = $this->objet_pear_db->query($requete) ;
|
82 |
$resultat = $this->objet_pear_db->query($requete) ;
|
| 83 |
if (DB::isError($resultat)) {
|
83 |
if (DB::isError($resultat)) {
|
| 84 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
|
84 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
|
| 85 |
}
|
85 |
}
|
| 86 |
$valeurs_par_defaut = array();
|
86 |
$valeurs_par_defaut = array();
|
| 87 |
if ($resultat->numRows()>0) {
|
87 |
if ($resultat->numRows()>0) {
|
| 88 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
88 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
|
| 89 |
$arguments = explode(' ', $ligne->gm_application_arguments);
|
89 |
$arguments = explode(' ', $ligne->gm_application_arguments);
|
| 90 |
var_dump($arguments);
|
- |
|
| 91 |
for ($i = 0; $i < count($arguments); $i++) {
|
90 |
for ($i = 0; $i < count($arguments); $i++) {
|
| 92 |
$attr = explode('=', $arguments[$i]);
|
91 |
$attr = explode('=', $arguments[$i]);
|
| 93 |
if ($attr[0] != '') {
|
92 |
if ($attr[0] != '') {
|
| 94 |
$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
|
93 |
$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
|
| 95 |
}
|
94 |
}
|