- Модуль: disk
- Путь к файлу: ~/bitrix/modules/disk/lib/focuscontroller.php
- Класс: BitrixDiskFocusController
- Вызов: FocusController::processActionShowObjectInGrid
protected function processActionShowObjectInGrid($objectId)
{
/** @var Folder|File $object */
$object = $this->findObject($objectId);
if (!$object)
{
$this->showNotFound();
return;
}
if (!$this->checkReadRights($object))
{
$this->showNotFound();
return;
}
$gridOptions = new FolderListOptions($object->getStorage());
$filter = array(
'PARENT_ID' => $object->getParentId(),
'DELETED_TYPE' => ObjectTable::DELETED_TYPE_NONE,
);
$finalPage = $this->getPageWithObject($object, $gridOptions, $filter);
$urlManager = Driver::getInstance()->getUrlManager();
LocalRedirect($this->buildUrlToFocus($urlManager->getPathInListing($object), $object->getId(), $finalPage, $gridOptions));
}