• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/localization/culture.php
  • Класс: BitrixMainLocalizationCultureTable
  • Вызов: CultureTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'CODE' => array(
			'data_type' => 'string',
		),
		'NAME' => array(
			'data_type' => 'string',
			'required' => true,
			'title' => Loc::getMessage("culture_entity_name"),
		),
		'FORMAT_DATE' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => "MM/DD/YYYY",
			'title' => Loc::getMessage("culture_entity_date_format"),
		),
		'FORMAT_DATETIME' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => "MM/DD/YYYY HH:MI:SS",
			'title' => Loc::getMessage("culture_entity_datetime_format"),
		),
		'FORMAT_NAME' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => "#NAME# #LAST_NAME#",
			'title' => Loc::getMessage("culture_entity_name_format"),
		),
		'WEEK_START' => array(
			'data_type' => 'integer',
			'default_value' => 0,
		),
		'CHARSET' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => "UTF-8",
			'title' => Loc::getMessage("culture_entity_charset"),
		),
		'DIRECTION' => array(
			'data_type' => 'boolean',
			'values' => array(self::RIGHT_TO_LEFT, self::LEFT_TO_RIGHT),
			'default_value' => self::LEFT_TO_RIGHT,
		),
		'SHORT_DATE_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "n/j/Y",
		),
		'MEDIUM_DATE_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "M j, Y",
		),
		'LONG_DATE_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "F j, Y",
		),
		'FULL_DATE_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "l, F j, Y",
		),
		'DAY_MONTH_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "F j",
		),
		'DAY_SHORT_MONTH_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "M j",
		),
		'DAY_OF_WEEK_MONTH_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "l, F j",
		),
		'SHORT_DAY_OF_WEEK_MONTH_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "D, F j",
		),
		'SHORT_DAY_OF_WEEK_SHORT_MONTH_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "D, M j",
		),
		'SHORT_TIME_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "g:i a",
		),
		'LONG_TIME_FORMAT' => array(
			'data_type' => 'string',
			'default_value' => "g:i:s a",
		),
		'AM_VALUE' => array(
			'data_type' => 'string',
			'default_value' => "am",
		),
		'PM_VALUE' => array(
			'data_type' => 'string',
			'default_value' => "pm",
		),
		'NUMBER_THOUSANDS_SEPARATOR' => array(
			'data_type' => 'string',
			'default_value' => ",",
		),
		'NUMBER_DECIMAL_SEPARATOR' => array(
			'data_type' => 'string',
			'default_value' => ".",
		),
		'NUMBER_DECIMALS' => array(
			'data_type' => 'integer',
			'default_value' => 2,
		),
	);
}