• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile/stresslevel.php
  • Класс: BitrixIntranetComponentUserProfileStressLevel
  • Вызов: StressLevel::getStub
public function getStub()
{
	$result = [
		'AVAILABLE' => (
			Option::get('intranet', 'stresslevel_available', 'Y') === 'Y'
			&& (
				!Loader::includeModule('bitrix24')
				|| BitrixBitrix24Release::isAvailable('stresslevel')
			)
				? 'Y'
				: 'N'
		),
		'TYPES_LIST' => [],
		'IMAGE_SUPPORT' => ($this->getImageSupport() ? 'Y' : 'N')
	];

	foreach(self::TYPE_LIST as $type)
	{
		$result['TYPES_LIST'][$type] = '';
	}

	return $result;
}