• Модуль: biconnector
  • Путь к файлу: ~/bitrix/modules/biconnector/lib/KeyManager.php
  • Класс: BitrixBIConnectorKeyManager
  • Вызов: KeyManager::check
static function check($data): ErrorCollection
{
	$errorCollection = new ErrorCollection();
	if (empty($data))
	{
		$errorCollection->setError(
			new Error('', static::ERROR_EMPTY_DATA)
		);
	}

	if ($data['USER_ID'] <= 0)
	{
		$errorCollection->setError(
			new Error('', static::ERROR_EMPTY_USER_ID)
		);
	}

	return $errorCollection;
}