65 $hideDocuments = $this->
getBackendUser()->getTSConfigVal(
'mod.help_DocumentationDocumentation.documents.hide');
67 if (count($hideDocuments) > 0) {
68 $documents = array_diff_key($documents, array_flip($hideDocuments));
70 $showDocuments = $this->
getBackendUser()->getTSConfigVal(
'mod.help_DocumentationDocumentation.documents.show');
72 if (count($showDocuments) > 0) {
73 $documents = array_intersect_key($documents, array_flip($showDocuments));
76 $this->view->assign(
'documents', $documents);
86 $language = $this->languageUtility->getDocumentationLanguage();
87 $documents = $this->documentRepository->findByLanguage($language);
102 $this->signalSlotDispatcher->dispatch(
104 'afterInitializeDocuments',
125 $documents = $this->documentationService->getOfficialDocuments();
128 $extensions = $this->documentationService->getLocalExtensions();
129 $allDocuments = array_merge($documents, $extensions);
131 $this->view->assign(
'documents', $allDocuments);
148 $language = $this->languageUtility->getDocumentationLanguage();
150 $result = $this->documentationService->fetchNearestDocument($url, $key, $version ?:
'latest', $language);
153 $this->controllerContext->getFlashMessageQueue()->enqueue(
155 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
156 \
TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
161 \
TYPO3\CMS\Core\Messaging\AbstractMessage::OK,
166 $this->controllerContext->getFlashMessageQueue()->enqueue(
168 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
169 \
TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
170 'downloadFailedNoArchive',
173 \
TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
177 \
TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR,
182 }
catch (\Exception $e) {
183 $this->controllerContext->getFlashMessageQueue()->enqueue(
185 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
186 \
TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
187 'downloadFailedDetails',
emitAfterInitializeDocumentsSignal($language, array $documents)
static makeInstance($className)
static trimExplode($delim, $string, $removeEmptyValues=FALSE, $limit=0)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
redirect($actionName, $controllerName=NULL, $extensionName=NULL, array $arguments=NULL, $pageUid=NULL, $delay=0, $statusCode=303)
static translate($key, $extensionName, $arguments=NULL)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
fetchAction($url, $key, $version=NULL)