1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
Relation.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\Relation\Item;
4
5
use Bitrix\Main\Type\Contract\Arrayable;
6
7
class
Relation
implements
Arrayable
8
{
9
private
?
Entity
$entity =
null
;
10
private
?
Owner
$owner =
null
;
11
12
public
function
__construct
(
private
int
$eventId)
13
{}
14
15
public
function
getEventId
(): int
16
{
17
return
$this->eventId;
18
}
19
20
public
function
getEntity
(): ?
Entity
21
{
22
return
$this->entity
;
23
}
24
25
public
function
setEntity
(
Entity
$entity): self
26
{
27
$this->entity = $entity;
28
29
return
$this;
30
}
31
32
public
function
getOwner
(): ?
Owner
33
{
34
return
$this->owner;
35
}
36
37
public
function
setOwner
(
Owner
$owner): self
38
{
39
$this->owner = $owner;
40
41
return
$this;
42
}
43
44
public
function
toArray
():
array
45
{
46
return
[
47
'eventId'
=> $this->eventId,
48
'owner'
=> $this->owner?->toArray(),
49
'entity'
=> $this->entity?->toArray(),
50
];
51
}
52
}
Bitrix\Calendar\Relation\Item\Entity
Определения
Entity.php:8
Bitrix\Calendar\Relation\Item\Owner
Определения
Owner.php:8
Bitrix\Calendar\Relation\Item\Relation
Определения
Relation.php:8
Bitrix\Calendar\Relation\Item\Relation\getEntity
getEntity()
Определения
Relation.php:20
Bitrix\Calendar\Relation\Item\Relation\setEntity
setEntity(Entity $entity)
Определения
Relation.php:25
Bitrix\Calendar\Relation\Item\Relation\setOwner
setOwner(Owner $owner)
Определения
Relation.php:37
Bitrix\Calendar\Relation\Item\Relation\__construct
__construct(private int $eventId)
Определения
Relation.php:12
Bitrix\Calendar\Relation\Item\Relation\toArray
toArray()
Определения
Relation.php:44
Bitrix\Calendar\Relation\Item\Relation\getEventId
getEventId()
Определения
Relation.php:15
Bitrix\Calendar\Relation\Item\Relation\getOwner
getOwner()
Определения
Relation.php:32
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$entity
$entity
Определения
group_bizproc_workflow_delete.php:17
Bitrix\Main\Type\Contract\Arrayable
Определения
arrayable.php:6
bitrix
modules
calendar
lib
Relation
Item
Relation.php
Создано системой
1.14.0