1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
arearepository.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Repository;
4
5use Bitrix\Location\Entity;
6use Bitrix\Location\Model\AreaTable;
7use Bitrix\Main\ORM;
8use Bitrix\Location\Model\EO_Area;
9
11{
16 public function findByArguments(array $args): array
17 {
18 $result = [];
19
20 $areasList = AreaTable::getList($args);
21 while ($area = $areasList->fetchObject())
22 {
24 }
25
26 return $result;
27 }
28
34 public function findByTypeAndCode(string $type, ?string $code = null): ?Entity\Area
35 {
37 $area = AreaTable::getList(['filter' => [
38 '=TYPE' => $type,
39 '=CODE' => $code,
40 ]])->fetchObject();
41
42 return $area ? Entity\Area\Converter\OrmConverter::convertFromOrm($area) : null;
43 }
44
49 public function store(Entity\Area $area)
50 {
52 }
53}
$type
Определения options.php:106
static convertFromOrm(EO_Area $area)
Определения ormconverter.php:33
store(Entity\Area $area)
Определения arearepository.php:49
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения options.php:195
Определения ufield.php:9