Subversion Repositories Applications.dictionnaire

Rev

Rev 14 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 16
Line 63... Line 63...
63
    
63
    
64
    private function getToutesDefinitions() {
64
    private function getToutesDefinitions() {
65
		return $this->bdd->recupererTous('SELECT valeur FROM definitions');
65
		return $this->bdd->recupererTous('SELECT valeur FROM definitions');
Line 66... Line -...
66
    }
-
 
67
    
66
    }
68
 
67
    
69
    private function getMots() {
68
    private function getMots() {
70
		$requete = 'SELECT TRIM(cle) as cle FROM definitions';  // certaines cles ont des espaces
69
    	$requete = 'SELECT TRIM(cle) as cle FROM definitions';  // certaines cles ont des espaces
71
		$assoc = $this->bdd->recupererTous($requete);
70
    	$assoc = $this->bdd->recupererTous($requete);
72
 
71
    
-
 
72
    	array_walk($assoc, array($this,"formaterTableauDefinitions"));
-
 
73
    	return $assoc;
-
 
74
    }
-
 
75
    
73
		array_walk($assoc, function(&$item) { $item = $item['cle']; });
76
    private function formaterTableauDefinitions(&$item) {
Line 74... Line 77...
74
		return $assoc;
77
    	$item = $item['cle'];
75
    }
78
    }
76
 
79