1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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\Sender\Internals\ClassConstant
Определения
classconstant.php:20
Bitrix\Sender\Templates\Type\USER
const USER
Определения
type.php:22
Bitrix\Sender\Templates\Type\ADDITIONAL
const ADDITIONAL
Определения
type.php:23
Bitrix\Sender\Templates\Type\SITE_TMPL
const SITE_TMPL
Определения
type.php:24
Bitrix\Sender\Templates\Type\getName
static getName($id)
Определения
type.php:32
Bitrix\Sender\Templates\Type\BASE
const BASE
Определения
type.php:21
$name
$name
Определения
menu_edit.php:35
Bitrix\Main\Type
Определения
collection.php:2
bitrix
modules
sender
lib
templates
type.php
Создано системой
1.14.0