• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/role.php
  • Класс: BitrixLandingRole
  • Вызов: Role::getExpectedRoleIds
static function getExpectedRoleIds()
{
	static $ids = [];

	if (!$ids)
	{
		$ids[] = -1;
		$res = self::getList([
			'select' => [
				'ID'
			],
			'filter' => [
				'=TYPE' => self::$expectedType
			]
		]);
		while ($row = $res->fetch())
		{
			$ids[] = $row['ID'];
		}
	}

	return $ids;
}