• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/numerator/numerator.php
  • Класс: BitrixMainNumeratorNumerator
  • Вызов: Numerator::getTemplateWordsForType
static function getTemplateWordsForType($isAvailableByType = null)
{
	if (is_null($isAvailableByType))
	{
		$isAvailableByType = static::NUMERATOR_DEFAULT_TYPE;
	}
	$settings = [];
	$allGeneratorsClasses = static::getNumberGeneratorFactory()->getClasses();
	foreach ($allGeneratorsClasses as $class)
	{
		/** @var $class NumberGenerator */
		$isAllTypesNeeded = $isAvailableByType === static::NUMERATOR_ALL_GENERATORS_TYPE;
		$isAvailableByDefault = $class::getAvailableForType() == static::NUMERATOR_DEFAULT_TYPE;
		if ($isAllTypesNeeded || $isAvailableByDefault || $class::getAvailableForType() == $isAvailableByType)
		{
			$settings = array_merge($settings, [$class::getType() => $class::getTemplateWordsForParse()]);
		}
	}
	return $settings;
}