• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/lib/invitedispatcher.php
  • Класс: BitrixWebdavInviteDispatcher
  • Вызов: InviteDispatcher::processActionInfoUserShare
public function processActionInfoUserShare(array $params)
{
	$this->params = $params;
	$attachSectionData = $this->getSectionDataByAttachObject($params['attachObject']);

	$result = array();
	if(empty($attachSectionData['SOCNET_GROUP_ID']))
	{
		$result['OWNER'] = $this->getOwnerBySection($attachSectionData);
		$result['OWNER'] = $result['OWNER']['USER'];
		$result['OWNER']['IS_GROUP'] = false;
		if(!empty($attachSectionData['IBLOCK_TYPE']) && $attachSectionData['IBLOCK_TYPE'] == 'shared_files')
		{
			$result['OWNER']['IS_SHARED'] = true;
		}
	}
	else
	{
		$result['OWNER'] = $this->reformatGroup($this->getGroupBySection($attachSectionData));
		$result['OWNER']['IS_GROUP'] = true;
		$result['OWNER']['IS_SHARED'] = false;
	}
	$result['TARGET_NAME'] = empty($attachSectionData['NAME'])? '' : $attachSectionData['NAME'];

	$result['CONNECTED_USERS_CAN_EDITED_COUNT'] = $this->getCountConnectedUsersCanEdited($attachSectionData);
	$result['CONNECTED_USERS_CANNOT_EDITED_COUNT'] = $this->getCountConnectedUsersCannotEdited($attachSectionData);
	$result['DISCONNECTED_USERS_COUNT'] = $this->getCountDisconnected($attachSectionData);

	$result['USER_DISK'] = array();
	$result['USER_DISK']['SHARE_URL'] = $this->getApplication()->getCurUri(http_build_query(array(
		'toWDController' => 1,
		'wdaction' => 'share',
	)));

	$result['USER_DISK']['UNSHARE_URL'] = $this->getApplication()->getCurUri(http_build_query(array(
		'toWDController' => 1,
		'wdaction' => 'unshare',
	)));

	$result['USER_DISK']['LIST_USERS_CAN_EDIT_URL'] = $this->getApplication()->getCurUri(http_build_query(array(
		'toWDController' => 1,
		'wdaction' => 'load_users_for_detail_user_share',
	)));

	return $result;
}