Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 10 Rev 16
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 10 2010-03-05 14:15:42Z jpm $
13
* @version   SVN: $Id: ColModele.php 16 2010-03-22 11:25:21Z 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 33... Line 33...
33
		return $this->limite_debut;
33
		return $this->limite_debut;
34
	}
34
	}
35
	public function getLimiteNbre() {
35
	public function getLimiteNbre() {
36
		return $this->limite_nbre;
36
		return $this->limite_nbre;
37
	}
37
	}
-
 
38
	
-
 
39
	protected function nettoyerTableauDeTableauxAssoc(&$tableau) {
-
 
40
		foreach ($tableau as $cle => $valeur) {
-
 
41
			$this->nettoyerTableauAssoc($valeur);
-
 
42
			$tableau[$cle] = $valeur;
-
 
43
		}
-
 
44
	}
-
 
45
	
-
 
46
	protected function nettoyerTableauAssoc(&$tableau) {
-
 
47
		foreach ($tableau as $cle => $valeur) {
-
 
48
			if (is_numeric($cle) && is_int((integer) $cle)) {
-
 
49
				unset($tableau[$cle]);
-
 
50
			}
-
 
51
		}
-
 
52
	}
38
}
53
}
39
54