2017-12-10 22:01:18 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BusinessLogic\Calendar;
|
|
|
|
|
|
|
|
|
|
|
|
use DataAccess\Calendar\CalendarGateway;
|
|
|
|
|
|
|
|
class CalendarHandler extends \BaseClass {
|
|
|
|
private $calendarGateway;
|
|
|
|
|
|
|
|
public function __construct(CalendarGateway $calendarGateway) {
|
|
|
|
$this->calendarGateway = $calendarGateway;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEventsForStaff($startTime, $endTime, $searchEventsFilter, $heskSettings) {
|
|
|
|
return $this->calendarGateway->getEventsForStaff($startTime, $endTime, $searchEventsFilter, $heskSettings);
|
|
|
|
}
|
2017-12-23 22:04:52 -05:00
|
|
|
|
|
|
|
public function updateEvent($calendarEvent, $userContext, $heskSettings) {
|
|
|
|
$this->calendarGateway->updateEvent($calendarEvent, $userContext, $heskSettings);
|
|
|
|
}
|
2017-12-10 22:01:18 -05:00
|
|
|
}
|