1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
type.php
См. документацию.
1<?php
8namespace Bitrix\Sender\Templates;
9
10use Bitrix\Main\Localization\Loc;
11use Bitrix\Sender\Internals\ClassConstant;
12
13Loc::loadMessages(__FILE__);
14
19class 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}
const USER
Определения type.php:22
const ADDITIONAL
Определения type.php:23
const SITE_TMPL
Определения type.php:24
static getName($id)
Определения type.php:32
const BASE
Определения type.php:21
$name
Определения menu_edit.php:35
Определения collection.php:2