2 declare(strict_types = 1);
19 use Psr\Http\Message\ServerRequestInterface;
44 $frontendUserAspect = GeneralUtility::makeInstance(Context::class)->getAspect(
'frontend.user');
53 'pageUid' => $tsfe->id,
54 'pageType' => $tsfe->type,
55 'groupList' => implode(
',', $frontendUserAspect->getGroupIds()),
56 'noCache' => $this->isNoCacheEnabled(),
57 'countUserInt' => count($tsfe->config[
'INTincScript'] ?? []),
58 'totalParsetime' => $this->getTimeTracker()->getParseTime(),
60 'uid' => $frontendUserAspect->get(
'id') ?: 0,
61 'username' => $frontendUserAspect->get(
'username') ?:
'',
63 'imagesOnPage' => $this->collectImagesOnPage(),
64 'documentSize' => $this->collectDocumentSize(),
79 $view = GeneralUtility::makeInstance(StandaloneView::class);
80 $templateNameAndPath =
'EXT:adminpanel/Resources/Private/Templates/Modules/Info/General.html';
81 $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($templateNameAndPath));
82 $view->setPartialRootPaths([
'EXT:adminpanel/Resources/Private/Partials']);
84 $view->assignMultiple($data->getArrayCopy());
86 return $view->render();
97 return 'info_general';
106 'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:sub.general.label'
122 'totalSizeHuman' => GeneralUtility::formatSize(0),
126 return $imagesOnPage;
133 $fileSize = @filesize($file);
134 $imagesOnPage[
'files'][] = [
137 'sizeHuman' => GeneralUtility::formatSize($fileSize),
139 $totalImageSize += $fileSize;
143 $imagesOnPage[
'totalSize'] = GeneralUtility::formatSize($totalImageSize);
144 $imagesOnPage[
'total'] = $count;
145 return $imagesOnPage;
160 return GeneralUtility::formatSize($documentSize);
184 return GeneralUtility::makeInstance(TimeTracker::class);