Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
BaseIblockElementFactory.php
1
<?php
2
3
namespace
Bitrix\Catalog\v2
;
4
5
use
Bitrix\Catalog\v2\Iblock\IblockInfo
;
6
use
Bitrix\Catalog\v2\IoC\ContainerContract
;
7
use
Bitrix\Catalog\v2\IoC\Dependency
;
8
17
abstract
class
BaseIblockElementFactory
18
{
20
protected
$container
;
22
protected
$iblockInfo
;
23
30
public
function
__construct
(
ContainerContract
$container
,
IblockInfo
$iblockInfo
)
31
{
32
$this->container =
$container
;
33
$this->iblockInfo =
$iblockInfo
;
34
}
35
40
abstract
public
function
createEntity
(
string
$entityClass):
BaseIblockElementEntity
;
41
42
protected
function
makeEntity
(
string
$entityClass):
BaseIblockElementEntity
43
{
44
return
$this->container->make($entityClass, [
45
Dependency::IBLOCK_INFO => $this->iblockInfo,
46
]);
47
}
48
}
Bitrix\Catalog\v2\BaseIblockElementEntity
Definition
BaseIblockElementEntity.php:27
Bitrix\Catalog\v2\BaseIblockElementFactory
Definition
BaseIblockElementFactory.php:18
Bitrix\Catalog\v2\BaseIblockElementFactory\__construct
__construct(ContainerContract $container, IblockInfo $iblockInfo)
Definition
BaseIblockElementFactory.php:30
Bitrix\Catalog\v2\BaseIblockElementFactory\createEntity
createEntity(string $entityClass)
Bitrix\Catalog\v2\BaseIblockElementFactory\makeEntity
makeEntity(string $entityClass)
Definition
BaseIblockElementFactory.php:42
Bitrix\Catalog\v2\BaseIblockElementFactory\$container
$container
Definition
BaseIblockElementFactory.php:20
Bitrix\Catalog\v2\BaseIblockElementFactory\$iblockInfo
$iblockInfo
Definition
BaseIblockElementFactory.php:22
Bitrix\Catalog\v2\Iblock\IblockInfo
Definition
IblockInfo.php:17
Bitrix\Catalog\v2\IoC\Dependency
Definition
Dependency.php:40
Bitrix\Catalog\v2\IoC\ContainerContract
Definition
ContainerContract.php:15
Bitrix\Catalog\v2
modules
catalog
lib
v2
BaseIblockElementFactory.php
Создано системой
1.10.0