Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
StoreProductFactory.php
1
<?php
2
3
namespace
Bitrix\Catalog\v2\StoreProduct
;
4
5
use
Bitrix\Catalog\v2\IoC\ContainerContract
;
6
15
class
StoreProductFactory
16
{
17
public
const
STORE_PRODUCT
=
StoreProduct::class
;
18
public
const
STORE_PRODUCT_COLLECTION
= StoreProductCollection::class;
19
20
protected
$container
;
21
27
public
function
__construct
(
ContainerContract
$container
)
28
{
29
$this->container =
$container
;
30
}
31
35
public
function
createEntity
():
StoreProduct
36
{
37
return
$this->container->make(self::STORE_PRODUCT);
38
}
39
43
public
function
createCollection
():
StoreProductCollection
44
{
45
return
$this->container->make(self::STORE_PRODUCT_COLLECTION);
46
}
47
}
Bitrix\Catalog\v2\StoreProduct\StoreProductCollection
Definition
StoreProductCollection.php:19
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory
Definition
StoreProductFactory.php:16
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory\createEntity
createEntity()
Definition
StoreProductFactory.php:35
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory\STORE_PRODUCT
const STORE_PRODUCT
Definition
StoreProductFactory.php:17
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory\STORE_PRODUCT_COLLECTION
const STORE_PRODUCT_COLLECTION
Definition
StoreProductFactory.php:18
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory\__construct
__construct(ContainerContract $container)
Definition
StoreProductFactory.php:27
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory\$container
$container
Definition
StoreProductFactory.php:20
Bitrix\Catalog\v2\StoreProduct\StoreProductFactory\createCollection
createCollection()
Definition
StoreProductFactory.php:43
Bitrix\Catalog\v2\StoreProduct\StoreProduct
Definition
StoreProduct.php:19
Bitrix\Main\DB\Connection\$host
$host
Definition
connection.php:29
Bitrix\Catalog\v2\IoC\ContainerContract
Definition
ContainerContract.php:15
Bitrix\Catalog\v2\StoreProduct
Definition
HasStoreProductCollection.php:3
modules
catalog
lib
v2
StoreProduct
StoreProductFactory.php
Создано системой
1.10.0