Subversion Repositories Applications.gtt

Rev

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

Rev 104 Rev 114
Line 89... Line 89...
89
			// TODO : vérifier le standard ISO-8601
89
			// TODO : vérifier le standard ISO-8601
90
			$annee = date('Y', time());
90
			$annee = date('Y', time());
91
		}
91
		}
92
		$this->annee = $annee;
92
		$this->annee = $annee;
Line -... Line 93...
-
 
93
		
93
		
94
		$this->nom_jours = array (1 => GESTION_LUN_A, GESTION_MAR_A, GESTION_MER_A, GESTION_JEU_A, GESTION_VEN_A, GESTION_SAM_A ,GESTION_DIM_A);
94
		$this->nom_jours = array (1 => GESTION_LUN_L, GESTION_MAR_L, GESTION_MER_L, GESTION_JEU_L, GESTION_VEN_L, GESTION_SAM_L ,GESTION_DIM_L); 
95
		$this->nom_jours_long = array (1 => GESTION_LUN_L, GESTION_MAR_L, GESTION_MER_L, GESTION_JEU_L, GESTION_VEN_L, GESTION_SAM_L ,GESTION_DIM_L); 
Line 95... Line 96...
95
		$this->nom_mois = array(1 => "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");
96
		$this->nom_mois = array(1 => "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");
96
		
97
		
Line 122... Line 123...
122
		if (is_null($j)) {
123
		if (is_null($j)) {
123
			return $this->nom_jours;
124
			return $this->nom_jours;
124
		}
125
		}
125
		return $this->nom_jours[$j];
126
		return $this->nom_jours[$j];
126
	}
127
	}
-
 
128
	
-
 
129
	public function getNomJoursLong($j = null)
-
 
130
	{
-
 
131
		if (is_null($j)) {
-
 
132
			return $this->nom_jours_long;
-
 
133
		}
-
 
134
		return $this->nom_jours_long[$j];
-
 
135
	}
Line 127... Line 136...
127
 
136
 
128
	public function getNomMois($m = null)
137
	public function getNomMois($m = null)
129
	{
138
	{
130
		if (is_null($m)) {
139
		if (is_null($m)) {
Line 215... Line 224...
215
		return $date_pentecote;
224
		return $date_pentecote;
216
	}
225
	}
Line 217... Line 226...
217
 
226
 
218
	/**
227
	/**
-
 
228
	*Indique si une date est fériée ou non
219
	*Indique si une date est fériée ou non
229
	*
220
	*renvoie 1 si férié
230
	*@param integer le timestamp de la date à vérifier
221
	*0 sinon
231
	*@return boolean true si vrai, false si le jour n'est pas férié.
222
	*/
232
	*/
223
	function etreFerie($date)
233
	function etreFerie($date)
224
	{
234
	{
225
		if (in_array($date, $this->liste_feries)) {
235
		if (in_array($date, $this->liste_feries)) {
226
			return 1;
236
			return true;
227
		} else {
237
		} else {
228
			return 0;
238
			return false;
229
		}
239
		}
230
	}
240
	}
231
}
241
}
232
?>
242
?>