• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/rating/results.php
  • Класс: BitrixMainRatingResultsTable
  • Вызов: ResultsTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
			'title' => Loc::getMessage('RESULTS_ENTITY_ID_FIELD'),
		),
		'RATING_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'ENTITY_TYPE_ID' => array(
			'data_type' => 'string',
			'required' => true,
			'validation' => array(__CLASS__, 'validateEntityTypeId'),
		),
		'ENTITY_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'CURRENT_VALUE' => array(
			'data_type' => 'float',
		),
		'PREVIOUS_VALUE' => array(
			'data_type' => 'float',
		),
		'CURRENT_POSITION' => array(
			'data_type' => 'integer',
		),
		'PREVIOUS_POSITION' => array(
			'data_type' => 'integer',
		),
		'RATING' => array(
			'data_type' => RatingTable::class,
			'reference' => array('=this.RATING_ID' => 'ref.ID'),
		),
	);
}