Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
googleapisection.php
1
<?php
2
3
4
namespace
Bitrix\Calendar\Sync
;
5
6
use
Bitrix\Calendar\Internals
;
7
use
Bitrix\Main\Loader
;
8
use
Bitrix\Main\ORM\Query\Query
;
9
13
class
GoogleApiSection
14
{
18
private
$connection;
19
24
public
static
function
createInstance
():
GoogleApiSection
25
{
26
return
new
self
();
27
}
28
29
public
function
__construct
()
30
{
31
}
32
36
public
function
createSection
(array $section): ?array
37
{
38
$googleApiSync =
new
GoogleApiSync
($section[
'OWNER_ID'
]);
39
return
$googleApiSync->createCalendar($section);
40
}
41
42
public
function
deleteSection
(array $section): void
43
{
44
(
new
GoogleApiSync
((
int
)$section[
'OWNER_ID'
]))->deleteCalendar((
string
)$section[
'GAPI_CALENDAR_ID'
]);
45
}
46
47
public
function
updateSection
(
string
$gApiCalendarId, array $section): void
48
{
49
$googleApiSync =
new
GoogleApiSync
($section[
'OWNER_ID'
]);
50
$googleApiSync->updateCalendar($gApiCalendarId, $section);
51
}
52
59
public
function
updateSectionList
(
string
$gApiCalendarId, array $section): array
60
{
61
$googleApiSync =
new
GoogleApiSync
($section[
'OWNER_ID'
]);
62
return
$googleApiSync->updateCalendarList($gApiCalendarId, $section);
63
}
64
}
Bitrix\Calendar\Sync\GoogleApiSection
Definition
googleapisection.php:14
Bitrix\Calendar\Sync\GoogleApiSection\__construct
__construct()
Definition
googleapisection.php:29
Bitrix\Calendar\Sync\GoogleApiSection\updateSectionList
updateSectionList(string $gApiCalendarId, array $section)
Definition
googleapisection.php:59
Bitrix\Calendar\Sync\GoogleApiSection\updateSection
updateSection(string $gApiCalendarId, array $section)
Definition
googleapisection.php:47
Bitrix\Calendar\Sync\GoogleApiSection\createSection
createSection(array $section)
Definition
googleapisection.php:36
Bitrix\Calendar\Sync\GoogleApiSection\deleteSection
deleteSection(array $section)
Definition
googleapisection.php:42
Bitrix\Calendar\Sync\GoogleApiSection\createInstance
static createInstance()
Definition
googleapisection.php:24
Bitrix\Calendar\Sync\GoogleApiSync
Definition
googleapisync.php:24
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Calendar\Internals
Definition
access.php:3
Bitrix\Calendar\Sync
modules
calendar
lib
sync
googleapisection.php
Создано системой
1.10.0