Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
EntityFieldImage.php
1
<?php
2
3
namespace
Bitrix\Catalog\v2\Image
;
4
5
use
Bitrix\Catalog\v2\BaseEntity
;
6
15
abstract
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
}
Bitrix\Catalog\v2\BaseEntity
Definition
BaseEntity.php:22
Bitrix\Catalog\v2\BaseEntity\setFieldNoDemand
setFieldNoDemand(string $name, $value)
Definition
BaseEntity.php:107
Bitrix\Catalog\v2\BaseEntity\getParent
getParent()
Definition
BaseEntity.php:85
Bitrix\Catalog\v2\Image\BaseImage
Definition
BaseImage.php:17
Bitrix\Catalog\v2\Image\BaseImage\getFileStructure
getFileStructure()
Definition
BaseImage.php:42
Bitrix\Catalog\v2\Image\EntityFieldImage
Definition
EntityFieldImage.php:16
Bitrix\Catalog\v2\Image\EntityFieldImage\setFileStructure
setFileStructure(array $fileFields)
Definition
EntityFieldImage.php:17
Bitrix\Catalog\v2\Image\EntityFieldImage\setId
setId(int $id)
Definition
EntityFieldImage.php:29
Bitrix\Catalog\v2\Image
Definition
BaseImage.php:3
modules
catalog
lib
v2
Image
EntityFieldImage.php
Создано системой
1.10.0