Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
EntityFieldImage.php
1<?php
2
4
6
15abstract class EntityFieldImage extends BaseImage
16{
17 public function setFileStructure(array $fileFields): BaseImage
18 {
19 parent::setFileStructure($fileFields);
20
21 if ($parent = $this->getParent())
22 {
23 $parent->setFieldNoDemand(static::CODE, $this->getFileStructure());
24 }
25
26 return $this;
27 }
28
29 public function setId(int $id): BaseEntity
30 {
31 if ($parent = $this->getParent())
32 {
33 $parent->setFieldNoDemand(static::CODE, $id);
34 }
35
36 return parent::setId($id);
37 }
38
39 public function remove(): BaseEntity
40 {
41 if ($parent = $this->getParent())
42 {
43 $parent->setFieldNoDemand(static::CODE, '');
44 }
45
46 return parent::remove();
47 }
48}
setFieldNoDemand(string $name, $value)