PushTable::getMap

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. PushTable
  4. getMap
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/internals/pushtable.php
  • Класс: BitrixCalendarInternalsPushTable
  • Вызов: PushTable::getMap
static function getMap()
{
	return [
		(new StringField('ENTITY_TYPE',
			[
				'validation' => [__CLASS__, 'validateEntityType']
			]
		))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_ENTITY_TYPE_FIELD'))
			->configurePrimary(true)
		,
		(new IntegerField('ENTITY_ID'))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_ENTITY_ID_FIELD'))
			->configurePrimary(true)
		,
		(new StringField('CHANNEL_ID',
			[
				'validation' => [__CLASS__, 'validateChannelId']
			]
		))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_CHANNEL_ID_FIELD'))
			->configureRequired(true)
		,
		(new StringField('RESOURCE_ID',
			[
				'validation' => [__CLASS__, 'validateResourceId']
			]
		))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_RESOURCE_ID_FIELD'))
			->configureRequired(true)
		,
		(new DatetimeField('EXPIRES'))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_EXPIRES_FIELD'))
			->configureRequired(true)
		,
		(new EnumField('NOT_PROCESSED'))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_NOT_PROCESSED_FIELD'))
			->configureValues(['N', 'Y', 'B', 'U'])
			->configureDefaultValue('N')
		,
		(new DatetimeField('FIRST_PUSH_DATE'))
			->configureTitle(Loc::getMessage('PUSH_ENTITY_FIRST_PUSH_DATE_FIELD'))
		,
	];
}

Добавить комментарий