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