Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DefaultOwner.php
1<?php
3
5use Bitrix\UI\Avatar;
6
7abstract class DefaultOwner
8{
9 abstract public function getId();
10
11 abstract public function getDefaultAccess(): array;
12
13 public function delete(): Main\Entity\DeleteResult
14 {
15 return Avatar\Mask\Item::deleteByFilter([
16 '=OWNER_TYPE' => static::class,
17 '=OWNER_ID' => $this->getId()
18 ]);
19 }
20}