ProductGroupAccessTable::getAccessPeriods

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. ProductGroupAccessTable
  4. getAccessPeriods
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/productgroupaccess.php
  • Класс: BitrixCatalogProductGroupAccessTable
  • Вызов: ProductGroupAccessTable::getAccessPeriods
static function getAccessPeriods($descr = false)
{
	if ($descr)
	{
		return array(
			self::ACCESS_LENGTH_HOUR => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_HOUR'),
			self::ACCESS_LENGTH_DAY => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_DAY'),
			self::ACCESS_LENGTH_WEEK => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_WEEK'),
			self::ACCESS_LENGTH_MONTH => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_MONTH'),
			self::ACCESS_LENGTH_QUART => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_QUART'),
			self::ACCESS_LENGTH_SEMIYEAR => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_SEMIYEAR'),
			self::ACCESS_LENGTH_YEAR => Loc::getMessage('PRODUCTGROUPACCESS_ENTITY_ACCESS_LENGTH_YEAR')
		);
	}
	return array(
		self::ACCESS_LENGTH_HOUR,
		self::ACCESS_LENGTH_DAY,
		self::ACCESS_LENGTH_WEEK,
		self::ACCESS_LENGTH_MONTH,
		self::ACCESS_LENGTH_QUART,
		self::ACCESS_LENGTH_SEMIYEAR,
		self::ACCESS_LENGTH_YEAR
	);
}

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