1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
base.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Rest\Preset\Data
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
11
abstract
class
Base
12
{
13
protected
const
CACHE_TIME
= 86400;
14
private
const
POSTFIX_MESSAGE_CODE =
'.MESSAGE_CODE'
;
15
22
protected
static
function
changeMessage
(
$data
)
23
{
24
if
(is_array(
$data
))
25
{
26
foreach
(
$data
as
$key
=> $value)
27
{
28
if
(is_array($value))
29
{
30
$data
[
$key
] = static::changeMessage($value);
31
}
32
elseif
(mb_strpos(
$key
, self::POSTFIX_MESSAGE_CODE) !==
false
)
33
{
34
[
$code
] = explode(self::POSTFIX_MESSAGE_CODE,
$key
, 2);
35
$message
= Loc::getMessage($value);
36
if
(!empty(
$message
))
37
{
38
$data
[
$code
] =
$message
;
39
}
40
}
41
}
42
}
43
44
return
$data
;
45
}
46
}
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Rest\Preset\Data\Base
Определения
base.php:12
Bitrix\Rest\Preset\Data\Base\CACHE_TIME
const CACHE_TIME
Определения
base.php:13
Bitrix\Rest\Preset\Data\Base\changeMessage
static changeMessage($data)
Определения
base.php:22
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
$code
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения
options.php:195
Bitrix\Rest\Preset\Data
Определения
base.php:3
$message
$message
Определения
payment.php:8
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$key
if(empty($signedUserToken)) $key
Определения
quickway.php:257
bitrix
modules
rest
lib
preset
data
base.php
Создано системой
1.14.0