Subversion Repositories Applications.framework

Rev

Rev 363 | Rev 378 | 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 {
16
	/**
16
	/**
17
	 * Etend le tableau à étendre avec les données du tableau à copier. Si des clés sont identiques entre les deux tableaux
17
	 * Etend le tableau à étendre avec les données du tableau à copier. Si des clés sont identiques entre les deux tableaux
Line 43... Line 43...
43
	/**
43
	/**
44
	 * Permet de trier un tableau multi-dimenssionnel en gardant l'ordre des clés.
44
	 * Permet de trier un tableau multi-dimenssionnel en gardant l'ordre des clés.
45
	 * 
45
	 * 
46
	 * @param Array $array le tableau à trier
46
	 * @param Array $array le tableau à trier
47
	 * @param Array $cols tableau indiquant en clé la colonne à trier et en valeur l'ordre avec SORT_ASC ou SORT_DESC
47
	 * @param Array $cols tableau indiquant en clé la colonne à trier et en valeur l'ordre avec SORT_ASC ou SORT_DESC
-
 
48
	 * @return Array le tableau trié.
48
	 * @author cagret at gmail dot com
49
	 * @author cagret at gmail dot com
49
	 * @see  http://fr.php.net/manual/fr/function.array-multisort.php Post du 21-Jun-2009 12:38
50
	 * @see  http://fr.php.net/manual/fr/function.array-multisort.php Post du 21-Jun-2009 12:38
50
	 */
51
	 */
51
	public static function trierTableauMd($array, $cols) {
52
	public static function trierTableauMd($array, $cols) {
52
		$colarr = array();
53
		$colarr = array();