Subversion Repositories Applications.referentiel

Rev

Rev 18 | Rev 23 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 jpm 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
* Classe modèle spécifique à l'application, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.
5
* Elle est abstraite donc doit obligatoirement être étendue.
6
*
7
* @category		Php5
8
* @package 		Referentiel
9
* @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
* @copyright	2010 Tela-Botanica
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
13
* @version		SVN: $Id$
14
*/
20 jpm 15
abstract class Dao {
6 jpm 16
	protected $distinction = '0';
17
	protected $limite_debut = null;
18
	protected $limite_nbre = null;
19
	protected $url_jrest = null;
20
 
21
	public function __construct() {
22
		$this->url_jrest = config::get('url_jrest');
23
	}
24
 
25
	public function avoirLimitation() {
26
		$limitation = false;
27
		if (!is_null($this->limite_debut) && !is_null($this->limite_nbre)) {
28
			$limitation = true;
29
		}
30
		return $limitation;
31
	}
32
 
33
	public function setDistinction($distinct) {
34
		$this->distinction = $distinct;
35
	}
36
 
37
	public function getDistinction() {
38
		return $this->distinction;
39
	}
40
 
41
	public function setLimitation($limite_debut, $limite_nbre) {
42
		$this->limite_debut = $limite_debut;
43
		$this->limite_nbre = $limite_nbre;
44
	}
45
 
46
	public function getLimiteDebut() {
47
		return $this->limite_debut;
48
	}
49
	public function getLimiteNbre() {
50
		return $this->limite_nbre;
51
	}
52
}