Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 16 Rev 18
Line 8... Line 8...
8
* @package   Collection
8
* @package   Collection
9
* @author	Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
* @author	Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
* @copyright 2010 Tela-Botanica
10
* @copyright 2010 Tela-Botanica
11
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
* @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
* @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
* @version   SVN: $Id: ColModele.php 16 2010-03-22 11:25:21Z jpm $
13
* @version   SVN: $Id: ColModele.php 18 2010-03-23 18:14:32Z jpm $
14
*/
14
*/
15
abstract class ColModele extends Modele {
15
abstract class ColModele extends Modele {
16
	protected $limite_debut = null;
16
	protected $limite_debut = null;
17
	protected $limite_nbre = null;
17
	protected $limite_nbre = null;
Line 35... Line 35...
35
	public function getLimiteNbre() {
35
	public function getLimiteNbre() {
36
		return $this->limite_nbre;
36
		return $this->limite_nbre;
37
	}
37
	}
Line 38... Line 38...
38
	
38
	
-
 
39
	protected function nettoyerTableauDeTableauxAssoc(&$tableau) {
39
	protected function nettoyerTableauDeTableauxAssoc(&$tableau) {
40
		if (is_array($tableau) && count($tableau) > 0) {
40
		foreach ($tableau as $cle => $valeur) {
41
			foreach ($tableau as $cle => $valeur) {
41
			$this->nettoyerTableauAssoc($valeur);
42
				$this->nettoyerTableauAssoc($valeur);
-
 
43
				$tableau[$cle] = $valeur;
42
			$tableau[$cle] = $valeur;
44
			}
43
		}
45
		}
Line 44... Line 46...
44
	}
46
	}
-
 
47
	
45
	
48
	protected function nettoyerTableauAssoc(&$tableau) {
46
	protected function nettoyerTableauAssoc(&$tableau) {
49
		if (is_array($tableau) && count($tableau) > 0) {
47
		foreach ($tableau as $cle => $valeur) {
50
			foreach ($tableau as $cle => $valeur) {
-
 
51
				if (is_numeric($cle) && is_int((integer) $cle)) {
48
			if (is_numeric($cle) && is_int((integer) $cle)) {
52
					unset($tableau[$cle]);
49
				unset($tableau[$cle]);
53
				}
50
			}
54
			}
51
		}
55
		}
52
	}
56
	}