Почему синтаксический анализ событий FullCalendar ограничен местоположением и описанием при использовании расширенных свойств в объекте события? - PullRequest
1 голос
/ 05 августа 2020

У меня есть несколько расширенных свойств для событий Google. Я могу получить эти значения в php, чтобы убедиться, что они существуют как часть события.

Документы FullCal на событиях из Google Calendar заявляют:

Расширенные свойства ... API Календаря Google позволяет указывать расширенные свойства для ваших событий. Расширенные свойства будут доступны в расширенных свойствах ha sh каждого объекта события.

Когда объект FullCal просматривается в консоли, отображаются только «Местоположение» и «Описание». Объект события Google огромен со многими другими свойствами, доступными на том же уровне, что и местоположение и описание (начало, конец, органайзер и т. Д.). Так почему же большинство из них не находятся в объекте события FullCal?

Моя визуализация события FullCal имеет:

info.event.extendedProps.location;  //returns the location                          
info.event.extendedProps.extendedProperties; //returns undefined

Вот список всех свойств, предлагаемых событиями Google: Событие API Календаря Google

, в частности, мне нужен доступ к «extendedProperties» "(на том же уровне, что и местоположение)

Я знаю, что решение должно быть простым, FullCal исчерпывающий, но я не могу понять этого.

Вот мой возвращенный объект события Google в php Формат API:

2nd Test params (2020-08-08T09:00:00-05:00)
Google_Service_Calendar_Event Object
(
[collection_key:protected] => recurrence
[anyoneCanAddSelf] => 
[attachmentsType:protected] => Google_Service_Calendar_EventAttachment
[attachmentsDataType:protected] => array
[attendeesType:protected] => Google_Service_Calendar_EventAttendee
[attendeesDataType:protected] => array
[attendeesOmitted] => 
[colorId] => 
[conferenceDataType:protected] => Google_Service_Calendar_ConferenceData
[conferenceDataDataType:protected] => 
[created] => 2020-07-29T15:19:20.000Z
[creatorType:protected] => Google_Service_Calendar_EventCreator
[creatorDataType:protected] => 
[description] => somestuff   /*================DESCRIPTION==========================*/
[endType:protected] => Google_Service_Calendar_EventDateTime
[endDataType:protected] => 
[endTimeUnspecified] => 
[etag] => /* ETag of the resource */
[extendedPropertiesType:protected] => Google_Service_Calendar_EventExtendedProperties
[extendedPropertiesDataType:protected] => 
[gadgetType:protected] => Google_Service_Calendar_EventGadget
[gadgetDataType:protected] => 
[guestsCanInviteOthers] => 
[guestsCanModify] => 
[guestsCanSeeOtherGuests] => 
[hangoutLink] => 
[htmlLink] => https://www.google.com/calendar/event?eid= /* your event id */
[iCalUID] =>  /* see google event doc  link */
[id] => /* your cal id  */
[kind] => calendar#event
[location] => somewhere /*================LOCATION==========================*/
[locked] => 
[organizerType:protected] => Google_Service_Calendar_EventOrganizer
[organizerDataType:protected] => 
[originalStartTimeType:protected] => Google_Service_Calendar_EventDateTime
[originalStartTimeDataType:protected] => 
[privateCopy] => 
[recurrence] => 
[recurringEventId] => 
[remindersType:protected] => Google_Service_Calendar_EventReminders
[remindersDataType:protected] => 
[sequence] => 1
[sourceType:protected] => Google_Service_Calendar_EventSource
[sourceDataType:protected] => 
[startType:protected] => Google_Service_Calendar_EventDateTime
[startDataType:protected] => 
[status] => confirmed
[summary] => 2nd Test params
[transparency] => 
[updated] => 2020-08-05T04:07:41.552Z
[visibility] => 
[internal_gapi_mappings:protected] => Array
    (
    )

[modelData:protected] => Array
    (
    )

[processed:protected] => Array
    (
    )

[creator] => Google_Service_Calendar_EventCreator Object
    (
        [displayName] => 
        [email] => someone@gmail.com
        [id] => 
        [self] => 
        [internal_gapi_mappings:protected] => Array
            (
            )

        [modelData:protected] => Array
            (
            )

        [processed:protected] => Array
            (
            )

    )

[organizer] => Google_Service_Calendar_EventOrganizer Object
    (
        [displayName] => Coastal Kitchen & Bath
        [email] => /* yourcal info */ .calendar.google.com
        [id] => 
        [self] => 1
        [internal_gapi_mappings:protected] => Array
            (
            )

        [modelData:protected] => Array
            (
            )

        [processed:protected] => Array
            (
            )

    )

[start] => Google_Service_Calendar_EventDateTime Object
    (
        [date] => 
        [dateTime] => 2020-08-08T09:00:00-05:00
        [timeZone] => America/Chicago
        [internal_gapi_mappings:protected] => Array
            (
            )

        [modelData:protected] => Array
            (
            )

        [processed:protected] => Array
            (
            )

    )

[end] => Google_Service_Calendar_EventDateTime Object
    (
        [date] => 
        [dateTime] => 2020-08-08T09:00:00-05:00
        [timeZone] => America/Chicago
        [internal_gapi_mappings:protected] => Array
            (
            )

        [modelData:protected] => Array
            (
            )

        [processed:protected] => Array
            (
            )

    )
                     /*================EXTENDED PROPERTIES==========================*/
[extendedProperties] => Google_Service_Calendar_EventExtendedProperties Object
    (
        [private] => Array
            (
                [patsAllowed] => yes
            )

        [shared] => 
        [internal_gapi_mappings:protected] => Array
            (
            )

        [modelData:protected] => Array
            (
            )

        [processed:protected] => Array
            (
            )

    )

[reminders] => Google_Service_Calendar_EventReminders Object
    (
        [collection_key:protected] => overrides
        [overridesType:protected] => Google_Service_Calendar_EventReminder
        [overridesDataType:protected] => array
        [useDefault] => 1
        [internal_gapi_mappings:protected] => Array
            (
            )

        [modelData:protected] => Array
            (
            )

        [processed:protected] => Array
            (
            )

    )

)
...