1C-Bitrix
25.700.0
Toggle main menu visibility
Титульная страница
Пространства имен
Пространства имен
Члены пространств имен
Указатель
$
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Функции
_
a
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Переменные
$
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
w
Перечисления
a
b
c
d
e
f
g
l
m
n
o
p
r
s
t
u
v
w
Элементы перечислений
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Структуры данных
Структуры данных
Алфавитный указатель структур данных
Иерархия классов
Поля структур
Указатель
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Функции
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Перечисления
Элементы перечислений
Файлы
Файлы
Список членов всех файлов
Указатель
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
б
в
к
л
о
п
с
т
ю
Функции
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
б
в
к
л
о
п
с
т
ю
Блог
Хостинг
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
category.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
Category
extends
ClassConstant
20
{
21
const
RECENT
= 100;
22
const
BASE
= 1;
23
const
USER
= 2;
24
const
ADDITIONAL
= 3;
25
const
CASES
= 4;
26
33
public
static
function
getName
($id)
34
{
35
$name
= Loc::getMessage(
'SENDER_TEMPLATES_CATEGORY_'
. self::getCode($id));
36
return
$name
?: parent::getName($id);
37
}
33
public
static
function
getName
($id) {
…
}
38
46
public
static
function
sortByCode
($codeA, $codeB)
47
{
48
$order
=
array
(
49
self::RECENT => 1,
50
self::BASE => 200,
51
self::USER => 210,
52
self::ADDITIONAL => 220,
53
);
54
55
$orderA = isset(
$order
[self::getId($codeA)]) ?
$order
[
self::getId
($codeA)] : 100;
56
$orderB = isset(
$order
[self::getId($codeB)]) ?
$order
[
self::getId
($codeB)] : 100;
57
58
if
($orderA < $orderB)
59
{
60
return
-1;
61
}
62
elseif
($orderA > $orderB)
63
{
64
return
1;
65
}
66
67
return
0;
68
}
46
public
static
function
sortByCode
($codeA, $codeB) {
…
}
69
}
19
class
Category
extends
ClassConstant
{
…
};
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Sender\Internals\ClassConstant
Определения
classconstant.php:20
Bitrix\Sender\Internals\ClassConstant\getId
static getId($code)
Определения
classconstant.php:145
Bitrix\Sender\Templates\Category
Определения
category.php:20
Bitrix\Sender\Templates\Category\sortByCode
static sortByCode($codeA, $codeB)
Определения
category.php:46
Bitrix\Sender\Templates\Category\RECENT
const RECENT
Определения
category.php:21
Bitrix\Sender\Templates\Category\USER
const USER
Определения
category.php:23
Bitrix\Sender\Templates\Category\ADDITIONAL
const ADDITIONAL
Определения
category.php:24
Bitrix\Sender\Templates\Category\CASES
const CASES
Определения
category.php:25
Bitrix\Sender\Templates\Category\getName
static getName($id)
Определения
category.php:33
Bitrix\Sender\Templates\Category\BASE
const BASE
Определения
category.php:22
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$name
$name
Определения
menu_edit.php:35
Bitrix\Sender\Templates
Определения
category.php:8
$order
$order
Определения
payment.php:8
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
sender
lib
templates
category.php
Создано системой
1.14.0