Example #1
0
static function getEvents()
{
	$result = array();
	setlocale(LC_ALL, 'fr_FR.UTF8');
	foreach(Query::getEventsIds() as $id)
	{
		$event = Query::getObject("", $id);
		$time = strtotime($event["start_time"]) - 32400; // temporary correction
		// TODO internationalize
		$months = array("Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre");
		$i = 0+strftime("%m", $time)-1;
		$month = $months[$i];
		array_push($result, 
				strftime("%e $month %G %Hh%M", $time)." ".$event["location"]);
	}
	return $result;
}