• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/documentcontroller.php
  • Класс: BitrixDiskDocumentDocumentController
  • Вызов: DocumentController::addCreateEditSessionByCurrentUser
protected function addCreateEditSessionByCurrentUser(FileData $fileData)
{
	return EditSession::add(array(
		'USER_ID' => $this->getUser()->getId(),
		'OWNER_ID' => $this->getUser()->getId(),
		'IS_EXCLUSIVE' => 1,
		'SERVICE' => $this->documentHandler::getCode(),
		'SERVICE_FILE_ID' => $fileData->getId(),
		'SERVICE_FILE_LINK' => $fileData->getLinkInService(),
	), $this->errorCollection);
}