From 29c9678df8a1a6285af3501b3c0b2ca2f57d358e Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 12:42:41 +0200 Subject: * order parameter in event list --- app/php/facades/EventFacade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/php/facades/EventFacade.php') diff --git a/app/php/facades/EventFacade.php b/app/php/facades/EventFacade.php index 909ca2a..a41b2f7 100644 --- a/app/php/facades/EventFacade.php +++ b/app/php/facades/EventFacade.php @@ -7,7 +7,7 @@ Prado::using('Application.user.DbUser'); class EventFacade extends Facade { - public function getEventList($dateFrom=NULL, $dateTo=NULL, $calendars=NULL) { + public function getEventList($dateFrom=NULL, $dateTo=NULL, $calendars=NULL, $order='ASC') { $calendarClause = '1=1'; if ($calendars) { $calendarClause = sprintf( @@ -28,7 +28,8 @@ class EventFacade extends Facade { [ 'date_from' => $dateFrom ?: '0000-00-00 00:00:00', 'date_to' => $dateTo ?: '9999-99-99', - 'calendar_clause' => $calendarClause + 'calendar_clause' => $calendarClause, + 'order_clause' => $order ] ); } -- cgit v1.2.3