• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/internals/classconstant.php
  • Класс: Bitrix\Sender\Internals\constants
  • Вызов: constants::getConstants
static function getConstants()
{
	static $constants = [];
	$constants[static::class] ??= null;

	if ($constants[static::class] === null)
	{
		$class = new \ReflectionClass(get_called_class());
		$list = $class->getConstants();

		$integration = Integration\EventHandler::onConstantList(get_called_class());
		foreach ($integration as $item)
		{
			$list[$item['code']] = $item['id'];
		}

		$constants[static::class] = $list;
	}

	return $constants[static::class];
}