Your IP : 18.224.43.98


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/forum/lib/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/forum/lib/forumsort.php

<?php
namespace Bitrix\Forum;

use \Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);

final class ForumSort
{
	private const LAST_POST_DATE = "P";
	private const TITLE = "T";
	private const POSTS = "N";
	private const VIEWS = "V";
	private const START_DATE = "D";
	private const USER_START_NAME = "A";

	/**
	 * Gets types list
	 * @return array
	 */
	public static function getList()
	{
		$res = (new \ReflectionClass(__CLASS__))->getConstants();
		$result = array();
		foreach ($res as $code => $id)
		{
			$result[$id] = Loc::getMessage("FORUM_SORT_".$code);
		}
		return $result;
	}
}