Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
type.php
1
<?php
8
namespace
Bitrix\Sender\Templates
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
use
Bitrix\Sender\Internals\ClassConstant
;
12
13
Loc::loadMessages
(__FILE__);
14
19
class
Type
extends
ClassConstant
20
{
21
const
BASE
= 1;
22
const
USER
= 2;
23
const
ADDITIONAL
= 3;
24
const
SITE_TMPL
= 4;
25
32
public
static
function
getName
($id)
33
{
34
$name =
Loc::getMessage
(
'SENDER_TEMPLATES_TYPE_CAPTION_'
. self::getCode($id));
35
return
$name ?: parent::getName($id);
36
}
37
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Sender\Internals\ClassConstant
Definition
classconstant.php:20
Bitrix\Sender\Templates\Type\USER
const USER
Definition
type.php:22
Bitrix\Sender\Templates\Type\ADDITIONAL
const ADDITIONAL
Definition
type.php:23
Bitrix\Sender\Templates\Type\SITE_TMPL
const SITE_TMPL
Definition
type.php:24
Bitrix\Sender\Templates\Type\getName
static getName($id)
Definition
type.php:32
Bitrix\Sender\Templates\Type\BASE
const BASE
Definition
type.php:21
Bitrix\Main\Type
Definition
collection.php:2
Bitrix\Sender\Templates
Definition
category.php:8
modules
sender
lib
templates
type.php
Создано системой
1.10.0