1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
placement.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Rest\Preset\Data;
4
5
use Bitrix\Main\Data\Cache;
6
use Bitrix\Rest\Dictionary;
7
12
class
Placement
13
{
14
private
const
CACHE_TIME = 86400;
15
private
const
CACHE_DIR =
'/rest/integration/data/placement/'
;
16
20
public
static
function
getList
() :
array
21
{
22
$result
= [];
23
24
$cache = Cache::createInstance();
25
if
($cache->initCache(static::CACHE_TIME,
'all'
. LANGUAGE_ID, static::CACHE_DIR))
26
{
27
$result
= $cache->getVars();
28
}
29
elseif
($cache->startDataCache())
30
{
31
$placementDictionary =
new
Dictionary\Placement
();
32
foreach
($placementDictionary as
$event
)
33
{
34
$result
[] = [
35
'id'
=>
$event
[
'code'
],
36
'name'
=> !empty(
$event
[
'name'
]) ?
$event
[
'name'
] .
' ('
.
$event
[
'code'
] .
')'
:
$event
[
'code'
],
37
'descr'
=> !empty(
$event
[
'descr'
]) ?
$event
[
'descr'
] :
''
,
38
];
39
}
40
41
$cache->endDataCache(
$result
);
42
}
43
44
return
$result
;
45
}
46
}
Bitrix\Rest\Dictionary\Placement
Определения
placement.php:12
Bitrix\Rest\Preset\Data\Placement\getList
static getList()
Определения
placement.php:20
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
$event
$event
Определения
prolog_after.php:141
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
rest
lib
preset
data
placement.php
Создано системой
1.14.0