Sunnysideup\GoogleCalendarInterface\GoogleCalendarInterface
Synopsis
class GoogleCalendarInterface
extends GoogleInterface
{
- // members
- private static string $calendar_id = '';
- private $google_service_calendar;
- private string $app_message = '';
- // Inherited members from GoogleInterface
- protected $scopes;
- // methods
- public void __construct()
- public array|bool getCalendars()
- public Google_Service_Calendar_Event addCalendarEvent()
- public void updateCalendarEvent()
- public void getCalendarEvent()
- public void deleteCalendarEvent()
- public array|bool getCalendarEvents()
- private void createEventsArray()
- // Inherited methods from GoogleInterface
- public bool config()
- public string getAuthLink()
Hierarchy
Members
private
- $app_message
- $calendar_id — string
- $google_service_calendar
protected
- $scopes
Methods
private
- createEventsArray() — Creates the events array.
public
- __construct() — Constructor for the class. We call the parent constructor, set scopes array and service calendar instance that we will use.
- addCalendarEvent() — We add an event to the calendar.
- deleteCalendarEvent()
- getCalendarEvent()
- getCalendarEvents() — Get our selected calendar events as an array or false if it's empty.
- getCalendars() — Gets a list of all calenders.
- updateCalendarEvent()
Inherited from Sunnysideup\GoogleCalendarInterface\GoogleInterface
public
- config() — Class configurator.
- getAuthLink() — Get error message string.