TYPO3
7.6
|
Public Member Functions | |
getPageRenderer () | |
__construct () | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
render () | |
addJavascript ($javascript) | |
addJavascriptFile ($javascriptFile) | |
addCss ($css) | |
addCssFile ($cssFileName, $cssFile) | |
addToolbarItem ($toolbarItemName, $toolbarItemClassName) | |
getModuleMenu (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
includeLegacyBackendItems () | |
initializeToolbarItems () | |
loadResourcesForRegisteredNavigationComponents () | |
getLocalLangFileName () | |
generateLocalLang () | |
generateJavascript () | |
handlePageEditing () | |
setStartupModule () | |
executeHook ($identifier, array $hookConfiguration=array()) | |
generateModuleMenu () | |
getFluidTemplateObject ($templatePathAndFileName=null) | |
getLanguageService () | |
getBackendUser () | |
getDocumentTemplate () | |
Protected Attributes | |
$content = '' | |
$css = '' | |
$cssFiles = array() | |
$js = '' | |
$jsFiles = array() | |
$toolbarItems = array() | |
$menuWidth = 190 | |
$debug | |
$templatePath = 'EXT:backend/Resources/Private/Templates/' | |
$backendModuleRepository | |
$moduleLoader | |
$pageRenderer | |
Class for rendering the TYPO3 backend
Definition at line 33 of file BackendController.php.
__construct | ( | ) |
Constructor
Definition at line 108 of file BackendController.php.
References $GLOBALS, debug(), BackendController\executeHook(), BackendController\getBackendUser(), BackendController\getLanguageService(), BackendController\getLocalLangFileName(), BackendController\includeLegacyBackendItems(), BackendController\initializeToolbarItems(), GeneralUtility\makeInstance(), and GeneralUtility\quoteJSvalue().
addCss | ( | $css | ) |
Adds a css snippet to the backend
string | $css | Css snippet |
\InvalidArgumentException |
Definition at line 808 of file BackendController.php.
References BackendController\$css.
addCssFile | ( | $cssFileName, | |
$cssFile | |||
) |
Adds a css file to the backend after it has been checked that it exists
string | $cssFileName | The css file's name with out the .css ending |
string | $cssFile | Css file reference |
Definition at line 823 of file BackendController.php.
addJavascript | ( | $javascript | ) |
Adds a javascript snippet to the backend
string | $javascript | Javascript snippet |
\InvalidArgumentException |
Definition at line 775 of file BackendController.php.
addJavascriptFile | ( | $javascriptFile | ) |
Adds a javscript file to the backend after it has been checked that it exists
string | $javascriptFile | Javascript file reference |
Definition at line 790 of file BackendController.php.
References GeneralUtility\resolveBackPath().
addToolbarItem | ( | $toolbarItemName, | |
$toolbarItemClassName | |||
) |
Adds an item to the toolbar, the class file for the toolbar item must be loaded at this point
string | $toolbarItemName | Toolbar item name, f.e. tx_toolbarExtension_coolItem |
string | $toolbarItemClassName | Toolbar item class name, f.e. tx_toolbarExtension_coolItem |
\UnexpectedValueException |
Definition at line 842 of file BackendController.php.
References GeneralUtility\logDeprecatedFunction().
|
protected |
Executes defined hooks functions for the given identifier.
These hook identifiers are valid:
string | $identifier | Specific hook identifier |
array | $hookConfiguration | Additional configuration passed to hook functions |
Definition at line 859 of file BackendController.php.
References $GLOBALS, and GeneralUtility\callUserFunction().
Referenced by BackendController\__construct(), and BackendController\render().
|
protected |
Generates the JavaScript code for the backend.
Definition at line 576 of file BackendController.php.
References $GLOBALS, GeneralUtility\dirname(), ExtensionManagementUtility\extRelPath(), BackendController\getBackendUser(), GeneralUtility\getIndpEnv(), BackendController\handlePageEditing(), GeneralUtility\intExplode(), BackendUtility\isModuleSetInTBE_MODULES(), BackendController\setStartupModule(), GeneralUtility\shortMD5(), and GeneralUtility\trimExplode().
Referenced by BackendController\render().
|
protected |
Reads labels required in JavaScript code from the localization system and returns them as JSON array in TYPO3.LLL.
Definition at line 477 of file BackendController.php.
References $lang, BackendController\getBackendUser(), and BackendController\getLanguageService().
Referenced by BackendController\getLocalLangFileName().
|
protected |
loads all modules from the repository and renders it with a template
Definition at line 875 of file BackendController.php.
References BackendController\getFluidTemplateObject().
Referenced by BackendController\getModuleMenu(), and BackendController\render().
|
protected |
Returns the current BE user.
Definition at line 930 of file BackendController.php.
References $GLOBALS.
Referenced by BackendController\__construct(), BackendController\generateJavascript(), BackendController\generateLocalLang(), BackendController\handlePageEditing(), BackendController\render(), and BackendController\setStartupModule().
|
protected |
Returns an instance of DocumentTemplate
Definition at line 940 of file BackendController.php.
References $GLOBALS.
Referenced by BackendController\render().
|
protected |
returns a new standalone view, shorthand function
string | $templatePathAndFileName | optional the path to set the template path and filename |
Definition at line 906 of file BackendController.php.
References GeneralUtility\getFileAbsFileName(), and GeneralUtility\makeInstance().
Referenced by BackendController\generateModuleMenu(), and BackendController\render().
|
protected |
Returns LanguageService
Definition at line 920 of file BackendController.php.
References $GLOBALS.
Referenced by BackendController\__construct(), BackendController\generateLocalLang(), and BackendController\handlePageEditing().
|
protected |
Returns the file name to the LLL JavaScript, containing the localized labels, which can be used in JavaScript code.
\RuntimeException |
Definition at line 457 of file BackendController.php.
References BackendController\generateLocalLang(), and GeneralUtility\writeFileToTypo3tempDir().
Referenced by BackendController\__construct().
getModuleMenu | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Returns the Module menu for the AJAX request
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 892 of file BackendController.php.
References BackendController\$content, $response, BackendController\generateModuleMenu(), and MessageInterface\getBody().
getPageRenderer | ( | ) |
Definition at line 99 of file BackendController.php.
References BackendController\$pageRenderer, and GeneralUtility\logDeprecatedFunction().
|
protected |
Checking if the "&edit" variable was sent so we can open it for editing the page.
Definition at line 683 of file BackendController.php.
References GeneralUtility\_GET(), MathUtility\canBeInterpretedAsInteger(), BackendController\getBackendUser(), BackendController\getLanguageService(), BackendUtility\getRecordsByField(), BackendUtility\getRecordWSOL(), BackendUtility\openPageTree(), GeneralUtility\quoteJSvalue(), and BackendUtility\workspaceOL().
Referenced by BackendController\generateJavascript().
|
protected |
Add hooks from the additional backend items to load certain things for the main backend. This was previously called from the global scope from backend.php.
Definition at line 182 of file BackendController.php.
References $GLOBALS, and GeneralUtility\getFileAbsFileName().
Referenced by BackendController\__construct().
|
protected |
Initialize toolbar item objects
\RuntimeException |
Definition at line 219 of file BackendController.php.
References $GLOBALS, and GeneralUtility\makeInstance().
Referenced by BackendController\__construct().
|
protected |
Loads the css and javascript files of all registered navigation widgets
Definition at line 347 of file BackendController.php.
References BackendController\$cssFiles, $GLOBALS, BackendController\$jsFiles, ExtensionManagementUtility\extPath(), ExtensionManagementUtility\extRelPath(), GeneralUtility\getFilesInDir(), GeneralUtility\getUrl(), and GeneralUtility\trimExplode().
Referenced by BackendController\render().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Injects the request object for the current request or subrequest As this controller goes only through the render() method, it is rather simple for now
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 257 of file BackendController.php.
References $response, MessageInterface\getBody(), and BackendController\render().
render | ( | ) |
Main function generating the BE scaffolding
Definition at line 269 of file BackendController.php.
References $GLOBALS, BackendController\executeHook(), BackendController\generateJavascript(), BackendController\generateModuleMenu(), BackendController\getBackendUser(), BackendController\getDocumentTemplate(), BackendController\getFluidTemplateObject(), BackendController\loadResourcesForRegisteredNavigationComponents(), and GeneralUtility\resolveBackPath().
Referenced by BackendController\mainAction().
|
protected |
Sets the startup module from either GETvars module and modParams or user configuration.
Definition at line 728 of file BackendController.php.
References GeneralUtility\_GET(), elseif, BackendController\getBackendUser(), and GeneralUtility\quoteJSvalue().
Referenced by BackendController\generateJavascript().
|
protected |
Definition at line 83 of file BackendController.php.
|
protected |
Definition at line 38 of file BackendController.php.
Referenced by BackendController\getModuleMenu().
|
protected |
Definition at line 43 of file BackendController.php.
Referenced by BackendController\addCss().
|
protected |
Definition at line 48 of file BackendController.php.
Referenced by BackendController\loadResourcesForRegisteredNavigationComponents().
|
protected |
Definition at line 73 of file BackendController.php.
|
protected |
Definition at line 53 of file BackendController.php.
|
protected |
Definition at line 58 of file BackendController.php.
Referenced by BackendController\loadResourcesForRegisteredNavigationComponents().
|
protected |
Definition at line 68 of file BackendController.php.
|
protected |
Definition at line 88 of file BackendController.php.
|
protected |
Definition at line 93 of file BackendController.php.
Referenced by BackendController\getPageRenderer().
|
protected |
Definition at line 78 of file BackendController.php.
|
protected |
Definition at line 63 of file BackendController.php.