Subversion Repositories eFlore/Applications.cel

Rev

Rev 529 | Rev 532 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 529 Rev 531
Line 13... Line 13...
13
abstract class Cel {
13
abstract class Cel {
14
	const TYPE_OBS = 'observation';
14
	const TYPE_OBS = 'observation';
15
	const TYPE_IMG = 'image';
15
	const TYPE_IMG = 'image';
Line 16... Line 16...
16
	
16
	
17
	public $config;
17
	public $config;
18
	public $parametres;
18
	private $parametres;
19
	protected $bdd;
19
	protected $bdd;
20
	protected $messages = array();
20
	protected $messages = array();
Line 21... Line 21...
21
	protected $debug = array();
21
	protected $debug = array();
Line 325... Line 325...
325
		}
325
		}
326
		return $donnees;
326
		return $donnees;
327
	}
327
	}
Line 328... Line 328...
328
	
328
	
329
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
329
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
330
       $val = explode(' ', $date_heure_mysql);
330
       $val = (int)explode(' ', $date_heure_mysql);
331
       $date = explode('-', $val[0]);
331
       $date = (int)explode('-', $val[0]);
332
       $heure = explode(':', $val[1]);
332
       $heure = (int)explode(':', $val[1]);
333
       return mktime($heure[0], $heure[1], $heure[2], $date[1], $date[2], $date[0]);
333
       return mktime($heure[0], $heure[1], $heure[2], $date[1], $date[2], $date[0]);
Line 334... Line 334...
334
	}
334
	}
335
	
335