Subversion Repositories Applications.framework

Rev

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

Rev 363 Rev 370
Line 7... Line 7...
7
 * @package	Utilitaire
7
 * @package	Utilitaire
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
9
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
10
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
10
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2 
11
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2 
12
 * @version	$Id: Tableau.php 363 2011-09-06 15:47:26Z jpm $
12
 * @version	$Id: Tableau.php 370 2011-10-04 14:39:38Z jpm $
13
 * @link		/doc/framework/
13
 * @link		/doc/framework/
14
 */
14
 */
15
class Tableau {
15
class Tableau {
Line 16... Line 16...
16
	
16
	
Line 44... Line 44...
44
	/**
44
	/**
45
	 * Permet de trier un tableau multi-dimenssionnel en gardant l'ordre des clés.
45
	 * Permet de trier un tableau multi-dimenssionnel en gardant l'ordre des clés.
46
	 * 
46
	 * 
47
	 * @param Array $array le tableau à trier
47
	 * @param Array $array le tableau à trier
48
	 * @param Array $cols tableau indiquant en clé la colonne à trier et en valeur l'ordre avec SORT_ASC ou SORT_DESC
48
	 * @param Array $cols tableau indiquant en clé la colonne à trier et en valeur l'ordre avec SORT_ASC ou SORT_DESC
-
 
49
	 * @return Array le tableau trié.
49
	 * @author cagret at gmail dot com
50
	 * @author cagret at gmail dot com
50
	 * @see  http://fr.php.net/manual/fr/function.array-multisort.php Post du 21-Jun-2009 12:38
51
	 * @see  http://fr.php.net/manual/fr/function.array-multisort.php Post du 21-Jun-2009 12:38
51
	 */
52
	 */
52
	public static function trierTableauMd($array, $cols) {
53
	public static function trierTableauMd($array, $cols) {
53
		$colarr = array();
54
		$colarr = array();