Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | class Jour |
---|
4 | { |
---|
5 | protected $_annee = 0 ; |
---|
6 | protected $_mois = 0 ; |
---|
7 | protected $_jour = 0 ; |
---|
8 | protected $_ts = 0 ; |
---|
9 | |
---|
10 | public static $joursFr = array(1 => 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche') ; |
---|
11 | |
---|
12 | public function __construct($jour, $mois, $annee) |
---|
13 | { |
---|
14 | $this -> _jour = (int) $jour ; |
---|
15 | $this -> _mois = (int) $mois ; |
---|
16 | $this -> _annee = (int) $annee ; |
---|
17 | $this -> _ts = (int) mktime(0, 0, 0, $this -> _mois, $this -> _jour, $this -> _annee) ; |
---|
18 | } |
---|
19 | |
---|
20 | public function getTS() { return $this -> _ts ; } |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.