1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
shopsitescontroller.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sale;
4
5
abstract
class
ShopSitesController
6
{
7
public
static
function
getShops
():
array
8
{
9
static
$shops =
null
;
10
if
(is_array($shops))
11
{
12
return
$shops;
13
}
14
15
$shops = [];
16
$siteIterator
=
\Bitrix\Main\SiteTable::getList
([
17
'select'
=> [
'LID'
,
'NAME'
,
'SORT'
],
18
'order'
=> [
'SORT'
=>
'ASC'
],
19
'cache'
=> [
'ttl'
=> 86400],
20
]);
21
while
(
$site
=
$siteIterator
->fetch())
22
{
23
$saleSite =
\Bitrix\Main\Config\Option::get
(
'sale'
,
'SHOP_SITE_'
.
$site
[
'LID'
]);
24
if
(
$site
[
'LID'
] === $saleSite)
25
{
26
$shops[] =
$site
;
27
}
28
}
29
30
return
$shops;
31
}
32
}
Bitrix\Main\Config\Option\get
static get($moduleId, $name, $default="", $siteId=false)
Определения
option.php:30
Bitrix\Main\ORM\Data\DataManager\getList
static getList(array $parameters=array())
Определения
datamanager.php:431
Bitrix\Sale\ShopSitesController
Определения
shopsitescontroller.php:6
Bitrix\Sale\ShopSitesController\getShops
static getShops()
Определения
shopsitescontroller.php:7
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$siteIterator
$siteIterator
Определения
options.php:48
$site
$site
Определения
yandex_run.php:614
bitrix
modules
sale
lib
shopsitescontroller.php
Создано системой
1.14.0