• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/urlmanager.php
  • Класс: BitrixDiskUrlManager
  • Вызов: UrlManager::getStorageByVariables
private function getStorageByVariables($variablesTmp)
{
	$storage = null;
	/** @var Storage $storage */
	if(!empty($variablesTmp['user_id']))
	{
		$storage = Driver::getInstance()->getStorageByUserId((int)$variablesTmp['user_id']);
	}
	elseif(!empty($variablesTmp['group_id']))
	{
		$storage = Driver::getInstance()->getStorageByGroupId((int)$variablesTmp['group_id']);
	}

	return $storage;
}