Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
forumsort.php
1
<?php
2
namespace
Bitrix\Forum
;
3
4
use \Bitrix\Main\Localization\Loc;
5
6
Loc::loadMessages
(__FILE__);
7
8
final
class
ForumSort
9
{
10
private
const
LAST_POST_DATE =
"P"
;
11
private
const
TITLE =
"T"
;
12
private
const
POSTS =
"N"
;
13
private
const
VIEWS =
"V"
;
14
private
const
START_DATE =
"D"
;
15
private
const
USER_START_NAME =
"A"
;
16
21
public
static
function
getList
()
22
{
23
$res = (new \ReflectionClass(__CLASS__))->getConstants();
24
$result = array();
25
foreach
($res as $code => $id)
26
{
27
$result[$id] =
Loc::getMessage
(
"FORUM_SORT_"
.$code);
28
}
29
return
$result;
30
}
31
}
Bitrix\Forum\ForumSort
Definition
forumsort.php:9
Bitrix\Forum\ForumSort\getList
static getList()
Definition
forumsort.php:21
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\Forum
modules
forum
lib
forumsort.php
Создано системой
1.10.0