Variable dans les classes php
Résolu/Fermé
matdev
Messages postés
26
Date d'inscription
mardi 19 mai 2009
Statut
Membre
Dernière intervention
6 janvier 2011
-
8 févr. 2010 à 10:56
matdev Messages postés 26 Date d'inscription mardi 19 mai 2009 Statut Membre Dernière intervention 6 janvier 2011 - 8 févr. 2010 à 11:26
matdev Messages postés 26 Date d'inscription mardi 19 mai 2009 Statut Membre Dernière intervention 6 janvier 2011 - 8 févr. 2010 à 11:26
A voir également:
- Variable dans les classes php
- Easy php - Télécharger - Divers Web & Internet
- Vba excel sélectionner une plage de cellules variable ✓ - Forum VB / VBA
- Remportez 3 des jeux classés plato - Forum Jeux vidéo
- Comment classer les mails dans gmail - Guide
1 réponse
matdev
Messages postés
26
Date d'inscription
mardi 19 mai 2009
Statut
Membre
Dernière intervention
6 janvier 2011
5
8 févr. 2010 à 11:26
8 févr. 2010 à 11:26
class MyLib_Util { private static $where=array( "J"=>" and created=now()", "J-1"=>" and created=subdate(now(),INTERVAL 1 DAY)", "S"=>" and week(created)=week(now()) and year(created)=year(now())", "S-1"=>" and week(created)=week(subdate(now(),INTERVAL 1 WEEK)) and year(created)=year(subdate(now(),INTERVAL 1 WEEK))", "M"=>" and month(created)=month(now()) and year(created)=year(now())", "M-1"=>" and month(created)=month(subdate(now(),INTERVAL 1 MONTH)) and year(created)=year(subdate(now(),INTERVAL 1 MONTH))", "M-2"=>" and month(created)=month(subdate(now(),INTERVAL 2 MONTH)) and year(created)=year(subdate(now(),INTERVAL 2 MONTH))", "T"=>" and quarter(created)=quarter(now()) and year(created)=year(now())", "T-1"=>" and quarter(created)=quarter(subdate(now(),INTERVAL 1 QUARTER)) and year(created)=year(subdate(now(),INTERVAL 1 QUARTER))", "T-2"=>" and quarter(created)=quarter(subdate(now(),INTERVAL 2 QUARTER)) and year(created)=year(subdate(now(),INTERVAL 2 QUARTER))", "T-3"=>" and quarter(created)=quarter(subdate(now(),INTERVAL 3 QUARTER)) and year(created)=year(subdate(now(),INTERVAL 3 QUARTER))", "A"=>" and year(created)=year(now())", "A-1"=>" and year(created)=year(subdate(now(),INTERVAL 1 YEAR))", "A-2"=>" and year(created)=year(subdate(now(),INTERVAL 2 YEAR))" ); public function comptaentres($type){ Zend_Debug::dump(self::$where[$type]); }