getTarget($targetId, $targetType)); $doc = Document::findById($targetId, $targetType, $docId); $manager->rename($docId, $name); $dirObject = $manager->getDir($doc->parent); $path = $manager->getParents($dirObject->getId()); $collection = $manager->getChildren($dirObject->getId()); include($_SERVER['DOCUMENT_ROOT'] . "/admin/documentsWidget.php"); }