PHP Class Spatie\GoogleCalendar\Event

Afficher le fichier Open project: spatie/laravel-google-calendar Class Usage Examples

Méthodes publiques

Свойство Type Description
$googleEvent Google_Service_Calendar_Event

Protected Properties

Свойство Type Description
$calendarId integer

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

__construct() public méthode

public __construct ( )

__get() public méthode

public __get ( string $name ) : mixed
$name string
Résultat mixed

__set() public méthode

public __set ( $name, $value )

create() public static méthode

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

createFromGoogleCalendarEvent() public static méthode

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

delete() public méthode

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

exists() public méthode

public exists ( ) : boolean
Résultat boolean

find() public static méthode

public static find ( string $eventId, string $calendarId = null ) : Event
$eventId string
$calendarId string
Résultat Event

get() public static méthode

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
Résultat Illuminate\Support\Collection

getFieldName() protected méthode

protected getFieldName ( string $name ) : string
$name string
Résultat string

getGoogleCalendar() protected static méthode

protected static getGoogleCalendar ( string $calendarId = null ) : GoogleCalendar
$calendarId string
Résultat GoogleCalendar

getSortDate() public méthode

public getSortDate ( ) : string
Résultat string

isAllDayEvent() public méthode

public isAllDayEvent ( ) : boolean
Résultat boolean

save() public méthode

public save ( $method = null ) : Event
Résultat Event

setDateProperty() protected méthode

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

Property Details

$calendarId protected_oe property

protected int $calendarId
Résultat integer

$googleEvent public_oe property

public Google_Service_Calendar_Event $googleEvent
Résultat Google_Service_Calendar_Event