Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
incomingattachmentmanager.php
1
<?php
2
3
4
namespace
Bitrix\Calendar\ICal
;
5
6
7
use
Bitrix\Calendar\ICal\Basic\AttachmentManager
;
8
use
Bitrix\Calendar\ICal\Parser\ParserManager
;
9
10
class
IncomingAttachmentManager
extends
AttachmentManager
11
{
12
private
$data;
16
private
$events;
17
private
$method;
18
19
public
static
function
getInstance
(array $params)
20
{
21
return
new
self
($params);
22
}
23
24
public
function
__construct
(array $params)
25
{
26
$this->data = $params[
'data'
];
27
}
28
29
public
function
getAttachment
()
30
{
31
return
$this->events;
32
}
33
34
public
function
prepareEventAttachment
():
IncomingAttachmentManager
35
{
36
$manager =
ParserManager::getInstance
($this->data);
37
$this->events = $manager->getProcessedEvents();
38
$this->method = $manager->getMethod();
39
40
return
$this;
41
}
42
43
public
function
convertEventFields
()
44
{
45
46
}
47
48
public
function
getEvent
()
49
{
50
return
!empty($this->events)
51
? $this->events[0]
52
: [];
53
}
54
55
public
function
getMethod
()
56
{
57
return
$this->method;
58
}
59
}
Bitrix\Calendar\ICal\Basic\AttachmentManager
Definition
attachmentmanager.php:8
Bitrix\Calendar\ICal\IncomingAttachmentManager
Definition
incomingattachmentmanager.php:11
Bitrix\Calendar\ICal\IncomingAttachmentManager\getEvent
getEvent()
Definition
incomingattachmentmanager.php:48
Bitrix\Calendar\ICal\IncomingAttachmentManager\convertEventFields
convertEventFields()
Definition
incomingattachmentmanager.php:43
Bitrix\Calendar\ICal\IncomingAttachmentManager\__construct
__construct(array $params)
Definition
incomingattachmentmanager.php:24
Bitrix\Calendar\ICal\IncomingAttachmentManager\prepareEventAttachment
prepareEventAttachment()
Definition
incomingattachmentmanager.php:34
Bitrix\Calendar\ICal\IncomingAttachmentManager\getAttachment
getAttachment()
Definition
incomingattachmentmanager.php:29
Bitrix\Calendar\ICal\IncomingAttachmentManager\getInstance
static getInstance(array $params)
Definition
incomingattachmentmanager.php:19
Bitrix\Calendar\ICal\IncomingAttachmentManager\getMethod
getMethod()
Definition
incomingattachmentmanager.php:55
Bitrix\Calendar\ICal\Parser\ParserManager
Definition
parsermanager.php:8
Bitrix\Calendar\ICal\Parser\ParserManager\getInstance
static getInstance(string $data)
Definition
parsermanager.php:30
Bitrix\Calendar\ICal
modules
calendar
lib
ical
incomingattachmentmanager.php
Создано системой
1.10.0