Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс GoogleApiTransport

Открытые члены

 __construct ($userId)
 
 openCalendarListChannel ($channelInfo)
 
 openEventsWatchChannel ($calendarId, $channelInfo)
 
 stopChannel ($channelId, $resourceId)
 
 deleteEvent ($eventId, $calendarId)
 
 patchEvent ($patchData, $calendarId, $eventId)
 
 updateEvent ($eventData, $calendarId, $eventId)
 
 insertEvent ($eventData, $calendarId)
 
 importEvent ($eventData, $calendarId)
 
 getCalendarList (array $requestParameters=null)
 
 getColors ()
 
 getEvents ($calendarId, $requestParams=array())
 
 getErrors ()
 
 getErrorsByCode ($code)
 
 getErrorByCode ($code)
 
 getInstanceRecurringEvent ($calendarId, $eventId, $originalStart)
 
 insertCalendar ($calendarData)
 
 sendBatchEvents ($body, $calendarId, $params)
 
 multipartDecode ($response)
 
 deleteCalendar (string $calendarId)
 
 updateCalendar (string $calendarId, $calendarData)
 
 updateCalendarList (string $calendarId, $calendarData)
 

Защищенные члены

 prepareMultipartMixed ($postData, $calendarId, $params)
 

Защищенные данные

const SERVICE_NAME = 'google'
 
 $requestLogger
 

Подробное описание

См. определение в файле googleapitransport.php строка 23

Конструктор(ы)

◆ __construct()

__construct (   $userId)

GoogleApiTransport constructor.

Аргументы
int$userId
Исключения
SystemException
ArgumentNullException
LoaderException

См. определение в файле googleapitransport.php строка 48

Методы

◆ deleteCalendar()

deleteCalendar ( string  $calendarId)
Аргументы
string$calendarId
Возвращает
array
Исключения
ArgumentException

См. определение в файле googleapitransport.php строка 581

◆ deleteEvent()

deleteEvent (   $eventId,
  $calendarId 
)

Deletes event from google calendar

Аргументы
$eventId
$calendarId
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 227

◆ getCalendarList()

getCalendarList ( array  $requestParameters = null)
Аргументы
$params
Возвращает
array
Исключения
ArgumentException

См. определение в файле googleapitransport.php строка 296

◆ getColors()

getColors ( )

get google calendar color codes

Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 311

◆ getErrorByCode()

getErrorByCode (   $code)

Getting once error with the specified code.

Аргументы
string$codeCode of error.
Возвращает
array

См. определение в файле googleapitransport.php строка 363

◆ getErrors()

getErrors ( )

Getting array of errors.

Возвращает
array

См. определение в файле googleapitransport.php строка 338

◆ getErrorsByCode()

getErrorsByCode (   $code)

Getting array of errors with the specified code.

Аргументы
string$codeCode of error.
Возвращает
array

См. определение в файле googleapitransport.php строка 349

◆ getEvents()

getEvents (   $calendarId,
  $requestParams = array() 
)

Get Event List from calendar

Аргументы
$calendarId
string$syncToken
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 324

◆ getInstanceRecurringEvent()

getInstanceRecurringEvent (   $calendarId,
  $eventId,
  $originalStart 
)

getting id of the recurrent event instance

Аргументы
$calendarId
$eventId
$originalStart
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 391

◆ importEvent()

importEvent (   $eventData,
  $calendarId 
)

Creates event at google calendar

Аргументы
$eventData
$calendarId
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 284

◆ insertCalendar()

insertCalendar (   $calendarData)

Creates local calendar at google calendar

Аргументы
$eventData
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 409

◆ insertEvent()

insertEvent (   $eventData,
  $calendarId 
)

Creates event at google calendar

Аргументы
$eventData
$calendarId
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 270

◆ multipartDecode()

multipartDecode (   $response)
Аргументы
$response
Возвращает
array
Исключения
ArgumentException

См. определение в файле googleapitransport.php строка 481

◆ openCalendarListChannel()

openCalendarListChannel (   $channelInfo)
Аргументы
$channelInfo
Возвращает
array
Исключения
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
LoaderException

См. определение в файле googleapitransport.php строка 98

◆ openEventsWatchChannel()

openEventsWatchChannel (   $calendarId,
  $channelInfo 
)
Аргументы
$calendarId
$channelInfo
Возвращает
array
Исключения
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
LoaderException

См. определение в файле googleapitransport.php строка 118

◆ patchEvent()

patchEvent (   $patchData,
  $calendarId,
  $eventId 
)

Updates only specified event fields

Аргументы
$patchData
$calendarId
$eventId
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 241

◆ prepareMultipartMixed()

prepareMultipartMixed (   $postData,
  $calendarId,
  $params 
)
protected

Performs multipart/mixed encoding.

Аргументы
array$postDataEntity of POST request
Возвращает
string

См. определение в файле googleapitransport.php строка 429

◆ sendBatchEvents()

sendBatchEvents (   $body,
  $calendarId,
  $params 
)

См. определение в файле googleapitransport.php строка 416

◆ stopChannel()

stopChannel (   $channelId,
  $resourceId 
)
Аргументы
$channelId
$resourceId
Возвращает
array
Исключения
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
LoaderException

См. определение в файле googleapitransport.php строка 138

◆ updateCalendar()

updateCalendar ( string  $calendarId,
  $calendarData 
)
Аргументы
string$calendarId
$calendarData
Возвращает
array
Исключения
ArgumentException

См. определение в файле googleapitransport.php строка 613

◆ updateCalendarList()

updateCalendarList ( string  $calendarId,
  $calendarData 
)
Аргументы
string$calendarId
$calendarData
Возвращает
array
Исключения
ArgumentException

См. определение в файле googleapitransport.php строка 627

◆ updateEvent()

updateEvent (   $eventData,
  $calendarId,
  $eventId 
)

Updates instance for recurring event

Аргументы
$eventData
$calendarId
$instanceId
Возвращает
array|mixed

См. определение в файле googleapitransport.php строка 256

Данные класса

◆ $requestLogger

$requestLogger
protected

См. определение в файле googleapitransport.php строка 37

◆ SERVICE_NAME

const SERVICE_NAME = 'google'
protected

См. определение в файле googleapitransport.php строка 26