PHP Class Spatie\GoogleCalendar\GoogleCalendar

Exibir arquivo Open project: spatie/laravel-google-calendar Class Usage Examples

Protected Properties

Property Type Description
$calendarId string
$calendarService Google_Service_Calendar

Public Methods

Method Description
__construct ( Google_Service_Calendar $calendarService, $calendarId )
deleteEvent ( string | Event $eventId )
getCalendarId ( ) : string
getEvent ( string $eventId ) : Google_Service_Calendar_Event Get a single event.
getService ( ) : Google_Service_Calendar
insertEvent ( Event | Google_Service_Calendar_Even\Google_Service_Calendar_Event $event ) : Google_Service_Calendar_Event Insert an event.
listEvents ( Carbon\Carbon $startDateTime = null, Carbon\Carbon $endDateTime = null, array $queryParameters = [] ) : array
updateEvent ( Event | Google_Service_Calendar_Even\Google_Service_Calendar_Event $event ) : Google_Service_Calendar_Event

Method Details

__construct() public method

public __construct ( Google_Service_Calendar $calendarService, $calendarId )
$calendarService Google_Service_Calendar

deleteEvent() public method

public deleteEvent ( string | Event $eventId )
$eventId string | Event

getCalendarId() public method

public getCalendarId ( ) : string
return string

getEvent() public method

Get a single event.
public getEvent ( string $eventId ) : Google_Service_Calendar_Event
$eventId string
return Google_Service_Calendar_Event

getService() public method

public getService ( ) : Google_Service_Calendar
return Google_Service_Calendar

insertEvent() public method

Insert an event.
public insertEvent ( Event | Google_Service_Calendar_Even\Google_Service_Calendar_Event $event ) : Google_Service_Calendar_Event
$event Event | Google_Service_Calendar_Even\Google_Service_Calendar_Event
return Google_Service_Calendar_Event

listEvents() public method

public listEvents ( Carbon\Carbon $startDateTime = null, Carbon\Carbon $endDateTime = null, array $queryParameters = [] ) : array
$startDateTime Carbon\Carbon
$endDateTime Carbon\Carbon
$queryParameters array
return array

updateEvent() public method

public updateEvent ( Event | Google_Service_Calendar_Even\Google_Service_Calendar_Event $event ) : Google_Service_Calendar_Event
$event Event | Google_Service_Calendar_Even\Google_Service_Calendar_Event
return Google_Service_Calendar_Event

Property Details

$calendarId protected_oe property

protected string $calendarId
return string

$calendarService protected_oe property

protected Google_Service_Calendar $calendarService
return Google_Service_Calendar