PHP Class Spatie\GoogleCalendar\Event

Show file Open project: spatie/laravel-google-calendar Class Usage Examples

Public Properties

Property Type Description
$googleEvent Google_Service_Calendar_Event

Protected Properties

Property Type Description
$calendarId integer

Public Methods

Method Description
__construct ( )
__get ( string $name ) : mixed
__set ( $name, $value )
create ( array $properties, string $calendarId = null )
createFromGoogleCalendarEvent ( Google_Service_Calendar_Event $googleEvent, $calendarId )
delete ( string $eventId = null )
exists ( ) : boolean
find ( string $eventId, string $calendarId = null ) : Event
get ( Carbon\Carbon $startDateTime = null, Carbon\Carbon $endDateTime = null, array $queryParameters = [], string $calendarId = null ) : Collection
getSortDate ( ) : string
isAllDayEvent ( ) : boolean
save ( $method = null ) : Event

Protected Methods

Method Description
getFieldName ( string $name ) : string
getGoogleCalendar ( string $calendarId = null ) : GoogleCalendar
setDateProperty ( string $name, Carbon\Carbon $date )

Method Details

__construct() public method

public __construct ( )

__get() public method

public __get ( string $name ) : mixed
$name string
return mixed

__set() public method

public __set ( $name, $value )

create() public static method

public static create ( array $properties, string $calendarId = null )
$properties array
$calendarId string

createFromGoogleCalendarEvent() public static method

public static createFromGoogleCalendarEvent ( Google_Service_Calendar_Event $googleEvent, $calendarId )
$googleEvent Google_Service_Calendar_Event

delete() public method

public delete ( string $eventId = null )
$eventId string

exists() public method

public exists ( ) : boolean
return boolean

find() public static method

public static find ( string $eventId, string $calendarId = null ) : Event
$eventId string
$calendarId string
return Event

get() public static method

public static get ( Carbon\Carbon $startDateTime = null, Carbon\Carbon $endDateTime = null, array $queryParameters = [], string $calendarId = null ) : Collection
$startDateTime Carbon\Carbon
$endDateTime Carbon\Carbon
$queryParameters array
$calendarId string
return Illuminate\Support\Collection

getFieldName() protected method

protected getFieldName ( string $name ) : string
$name string
return string

getGoogleCalendar() protected static method

protected static getGoogleCalendar ( string $calendarId = null ) : GoogleCalendar
$calendarId string
return GoogleCalendar

getSortDate() public method

public getSortDate ( ) : string
return string

isAllDayEvent() public method

public isAllDayEvent ( ) : boolean
return boolean

save() public method

public save ( $method = null ) : Event
return Event

setDateProperty() protected method

protected setDateProperty ( string $name, Carbon\Carbon $date )
$name string
$date Carbon\Carbon

Property Details

$calendarId protected property

protected int $calendarId
return integer

$googleEvent public property

public Google_Service_Calendar_Event $googleEvent
return Google_Service_Calendar_Event