1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
site.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sender\Integration\Landing
;
4
5
class
Site
6
{
7
private
static
function
canUse():
bool
8
{
9
return \Bitrix\Main\Loader::includeModule(
'landing'
);
10
}
11
16
public
static
function
getLandingAndStorePublicUrls
():
array
17
{
18
if
(!static::canUse())
19
{
20
return
[];
21
}
22
23
$siteIds = \Bitrix\Landing\Site::getList([
24
'select'
=> [
25
'ID'
,
26
],
27
'filter'
=> [
28
'@TYPE'
=> [
'PAGE'
,
'STORE'
],
29
],
30
]);
31
$siteIds = array_column($siteIds->fetchAll(),
'ID'
);
32
33
if
(empty($siteIds))
34
{
35
return
[];
36
}
37
38
return
array_values((
array
)\
Bitrix
\
Landing
\Site::getPublicUrl($siteIds));
39
}
40
}
Bitrix\Sender\Integration\Landing\Site
Определения
site.php:6
Bitrix\Sender\Integration\Landing\Site\getLandingAndStorePublicUrls
static getLandingAndStorePublicUrls()
Определения
site.php:16
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Sender\Integration\Landing
Определения
site.php:3
Bitrix
bitrix
modules
sender
lib
integration
landing
site.php
Создано системой
1.14.0