1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
PropertyFeatureCollection.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Catalog\v2\PropertyFeature;
4
5
use Bitrix\Catalog\v2\BaseCollection;
6
use Bitrix\Main\Result;
7
16
class
PropertyFeatureCollection
extends
BaseCollection
17
{
19
protected
$repository
;
20
21
public
function
__construct
(
PropertyFeatureRepositoryContract
$repository
)
22
{
23
$this->repository =
$repository
;
24
}
25
26
public
function
findByFeatureId(
string
$featureId): ?
PropertyFeature
27
{
29
foreach
($this->
getIterator
() as $item)
30
{
31
if
($item->getFeatureId() === $featureId)
32
{
33
return
$item;
34
}
35
}
36
37
return
null
;
38
}
39
40
public
function
saveInternal
():
Result
41
{
42
return
new
Result
();
43
}
44
45
public
function
deleteInternal
():
Result
46
{
47
return
new
Result
();
48
}
49
}
Bitrix\Catalog\v2\BaseCollection
Определения
BaseCollection.php:17
Bitrix\Catalog\v2\BaseCollection\getIterator
getIterator()
Определения
BaseCollection.php:252
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureCollection
Определения
PropertyFeatureCollection.php:17
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureCollection\$repository
$repository
Определения
PropertyFeatureCollection.php:19
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureCollection\__construct
__construct(PropertyFeatureRepositoryContract $repository)
Определения
PropertyFeatureCollection.php:21
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureCollection\deleteInternal
deleteInternal()
Определения
PropertyFeatureCollection.php:45
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureCollection\saveInternal
saveInternal()
Определения
PropertyFeatureCollection.php:40
Bitrix\Catalog\v2\PropertyFeature\PropertyFeature
Определения
PropertyFeature.php:17
Bitrix\Main\ORM\Data\Result
Определения
result.php:16
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureRepositoryContract
Определения
PropertyFeatureRepositoryContract.php:17
bitrix
modules
catalog
lib
v2
PropertyFeature
PropertyFeatureCollection.php
Создано системой
1.14.0