Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
forumsort.php
1<?php
2namespace Bitrix\Forum;
3
4use \Bitrix\Main\Localization\Loc;
5
6Loc::loadMessages(__FILE__);
7
8final 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}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29