• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/lib/invitedispatcher.php
  • Класс: BitrixWebdavInviteDispatcher
  • Вызов: InviteDispatcher::getOwnerBySection
private function getOwnerBySection(array $sectionData)
{
	//shared docs
	if(
		$sectionData['IBLOCK_TYPE'] == 'shared_files' &&
		!empty($sectionData['SECTION_ID']) &&
		!empty($sectionData['CREATED_BY'])
	)
	{
		$user = BitrixMainUserTable::getById($sectionData['CREATED_BY'])->fetch();
		return empty($user)? array() : $this->reformatUserRow($user);
	}

	$row = BitrixWebdavFolderInviteTable::getList(array(
		'select' => array('*', 'USER'),
		'limit' => 1,
		'filter' => array(
			'=IBLOCK_ID' => $sectionData['IBLOCK_ID'],
			'=SECTION_ID' => $sectionData['SECTION_ID'],
		),
	))->fetch();

	return empty($row)? array() : $this->reformatInviteRow($row);
}