TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ViewModuleController Class Reference
Inheritance diagram for ViewModuleController:
ActionController AbstractController ControllerInterface

Public Member Functions

 initializeAction ()
 
 showAction ()
 
- Public Member Functions inherited from ActionController
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 injectCacheService (\TYPO3\CMS\Extbase\Service\CacheService $cacheService)
 
 injectMvcPropertyMappingConfigurationService (\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request,\TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- Public Member Functions inherited from AbstractController
 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (\TYPO3\CMS\Extbase\Validation\ValidatorResolver $validatorResolver)
 
 getControllerContext ()
 
 __construct ()
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 addFlashMessage ($messageBody, $messageTitle= '', $severity=\TYPO3\CMS\Core\Messaging\AbstractMessage::OK, $storeInSession=true)
 
 canProcessRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request,\TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
 forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
 throwStatus ($statusCode, $statusMessage=null, $content=null)
 

Protected Member Functions

 registerButtons ()
 
 getAdminCommand ($pageId)
 
 getTypeParameterIfSet ($pageId)
 
 getDomainName ($pageId)
 
 getPreviewFrameWidths ()
 
 getPreviewLanguages ()
 
 getLanguageParameter ()
 
 getDatabaseConnection ()
 
 getBackendUser ()
 
 getLanguageService ()
 
- Protected Member Functions inherited from ActionController
 initializeActionMethodArguments ()
 
 resolveActionMethodName ()
 
 emitBeforeCallActionMethodSignal (array $preparedArguments)
 
 setViewConfiguration (ViewInterface $view)
 
 getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
 resolveViewObjectName ()
 
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
 errorAction ()
 
 clearCacheOnError ()
 
 addErrorFlashMessage ()
 
 getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
 getFlattenedValidationErrorMessage ()
 
- Protected Member Functions inherited from AbstractController
 redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $delay=0, $statusCode=303)
 
 redirectToUri ($uri, $delay=0, $statusCode=303)
 
 addBaseUriIfNecessary ($uri)
 

Protected Attributes

 $defaultViewObjectName = BackendTemplateView::class
 
 $view
 
- Protected Attributes inherited from ActionController
 $reflectionService
 
 $cacheService
 
 $view = null
 
 $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
 $viewFormatToObjectNameMap = array()
 
 $defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class
 
 $actionMethodName = 'indexAction'
 
 $errorMethodName = 'errorAction'
 
 $mvcPropertyMappingConfigurationService
 
 $request
 
 $response
 
- Protected Attributes inherited from AbstractController
 $signalSlotDispatcher
 
 $objectManager
 
 $uriBuilder
 
 $extensionName
 
 $settings
 
 $request
 
 $response
 
 $validatorResolver
 
 $arguments
 
 $supportedRequestTypes = array(\TYPO3\CMS\Extbase\Mvc\Request::class)
 
 $controllerContext
 
 $configurationManager
 

Additional Inherited Members

- Static Public Member Functions inherited from ActionController
static getActionMethodParameters ($objectManager)
 

Detailed Description

Controller for viewing the frontend

Definition at line 29 of file ViewModuleController.php.

Member Function Documentation

getAdminCommand (   $pageId)
protected

Get admin command

Parameters
int$pageId
Returns
string

Definition at line 162 of file ViewModuleController.php.

References ViewModuleController\getBackendUser(), and BackendUtility\readPageAccess().

getBackendUser ( )
protected
getDatabaseConnection ( )
protected
Returns

Definition at line 301 of file ViewModuleController.php.

References $GLOBALS.

Referenced by ViewModuleController\getPreviewLanguages().

getDomainName (   $pageId)
protected

Get domain name for requested page id

Parameters
int$pageId
Returns
string|NULL Domain name from first sys_domains-Record or from TCEMAIN.previewDomain, NULL if neither is configured

Definition at line 198 of file ViewModuleController.php.

References BackendUtility\BEgetRootLine(), BackendUtility\firstDomainRecord(), ViewModuleController\getBackendUser(), and BackendUtility\getPagesTSconfig().

getLanguageParameter ( )
protected

Gets the L parameter from the user session

Returns
string

Definition at line 287 of file ViewModuleController.php.

References ViewModuleController\getBackendUser(), and ViewModuleController\getPreviewLanguages().

getLanguageService ( )
protected
getPreviewFrameWidths ( )
protected

Get available widths for preview frame

Returns
array

Definition at line 214 of file ViewModuleController.php.

References GeneralUtility\_GP(), ViewModuleController\getLanguageService(), and BackendUtility\getModTSconfig().

Referenced by ViewModuleController\showAction().

getPreviewLanguages ( )
protected
getTypeParameterIfSet (   $pageId)
protected

With page TS config it is possible to force a specific type id via mod.web_view.type for a page id or a page tree. The method checks if a type is set for the given id and returns the additional GET string.

Parameters
int$pageId
Returns
string

Definition at line 181 of file ViewModuleController.php.

References BackendUtility\getModTSconfig().

initializeAction ( )

Gets called before each action

Returns
void

Definition at line 91 of file ViewModuleController.php.

References ViewModuleController\getLanguageService(), and GeneralUtility\makeInstance().

registerButtons ( )
protected
showAction ( )

Show selected page from pagetree in iframe

Returns
void

Definition at line 103 of file ViewModuleController.php.

References ViewModuleController\getPreviewFrameWidths(), and ViewModuleController\getPreviewLanguages().

Member Data Documentation

$defaultViewObjectName = BackendTemplateView::class
protected

Definition at line 34 of file ViewModuleController.php.

$view
protected

Definition at line 39 of file ViewModuleController.php.