Subversion Repositories Applications.papyrus

Rev

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

Rev 1088 Rev 1298
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_OBJECT)) {        		
88
        	while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
89
        		$arguments = explode(' ', $ligne->gm_application_arguments);        	
89
 				$arguments = explode(' ', $ligne->gm_application_arguments);
-
 
90
 				var_dump($arguments);
90
 				for ($i = 0; $i < count($arguments); $i++) {
91
 				for ($i = 0; $i < count($arguments); $i++) {
91
 					$attr = explode('=', $arguments[$i]);
92
 					$attr = explode('=', $arguments[$i]);
92
 					if ($attr[0] != '') {
93
 					if ($attr[0] != '') {
93
 						$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
94
 						$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
94
 					}
95
 					}