Subversion Repositories Applications.framework

Rev

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

Rev 379 Rev 398
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 379 2011-10-14 09:11:52Z jpm $
12
 * @version	$Id: Tableau.php 398 2011-11-15 09:59:01Z jpm $
13
 * @link		/doc/framework/
13
 * @link		/doc/framework/
14
 */
14
 */
15
class Tableau {
15
class Tableau {
Line 16... Line 16...
16
	
16
 
Line 67... Line 67...
67
			}
67
			}
68
		}
68
		}
69
		$params = array();
69
		$params = array();
70
		foreach ($cols as $col => $order) {
70
		foreach ($cols as $col => $order) {
71
			$params[] =& $colarr[$col];
71
			$params[] =& $colarr[$col];
72
			$params = array_merge($params, (array)$order);
72
			$orders = (array) $order;
-
 
73
			foreach($orders as $orderElement) {
-
 
74
				$params[] =& $orderElement;
-
 
75
			}
73
		}
76
		}
74
		call_user_func_array('array_multisort', $params);
77
		call_user_func_array('array_multisort', $params);
75
		$ret = array();
78
		$ret = array();
76
		$keys = array();
79
		$keys = array();
77
		$first = true;
80
		$first = true;