TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractController Class Reference
Inheritance diagram for AbstractController:
ActionController AbstractController ControllerInterface SystemInformationController ToolsController WebInfoController

Public Member Functions

 injectLogEntryRepository (\TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository $logEntryRepository)
 
 initializeAction ()
 
 initializeIndexAction ()
 
 indexAction (\TYPO3\CMS\Belog\Domain\Model\Constraint $constraint=null)
 
- 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)
 

Public Attributes

const TIMEFRAME_THISWEEK = 0
 
const TIMEFRAME_LASTWEEK = 1
 
const TIMEFRAME_LASTSEVENDAYS = 2
 
const TIMEFRAME_THISMONTH = 10
 
const TIMEFRAME_LASTMONTH = 11
 
const TIMEFRAME_LAST31DAYS = 12
 
const TIMEFRAME_CUSTOM = 30
 

Protected Member Functions

 initializeView (ViewInterface $view)
 
 getConstraintFromBeUserData ()
 
 persistConstraintInBeUserData (\TYPO3\CMS\Belog\Domain\Model\Constraint $constraint)
 
 createUserAndGroupListForSelectOptions ()
 
 forceWorkspaceSelectionIfInWorkspace (\TYPO3\CMS\Belog\Domain\Model\Constraint $constraint)
 
 createPageDepthOptions ()
 
 setStartAndEndTimeFromTimeSelector (\TYPO3\CMS\Belog\Domain\Model\Constraint $constraint)
 
- 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

 $isInPageContext = false
 
 $pageId = 0
 
 $logEntryRepository = null
 
 $view
 
- Protected Attributes inherited from ActionController
 $reflectionService
 
 $cacheService
 
 $view = null
 
 $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
 $viewFormatToObjectNameMap = []
 
 $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 = [\TYPO3\CMS\Extbase\Mvc\Request::class]
 
 $controllerContext
 
 $configurationManager
 

Additional Inherited Members

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

Detailed Description

Abstract class to show log entries from sys_log

Definition at line 24 of file belog/Classes/Controller/AbstractController.php.

Member Function Documentation

createPageDepthOptions ( )
protected

Create options for the 'depth of page levels' selector. This is shown if the module is displayed in page -> info

Returns
array Key is depth identifier (1 = One level), value the localized select option label

Definition at line 311 of file belog/Classes/Controller/AbstractController.php.

References LocalizationUtility\translate().

Referenced by AbstractController\indexAction().

createUserAndGroupListForSelectOptions ( )
protected

Create options for the user / group drop down. This is not moved to a repository by intention to not mix up this 'meta' data with real repository work

Returns
array Key is the option name, value its label

Definition at line 246 of file belog/Classes/Controller/AbstractController.php.

References BackendUtility\getGroupNames(), BackendUtility\getUserNames(), and LocalizationUtility\translate().

Referenced by AbstractController\indexAction().

forceWorkspaceSelectionIfInWorkspace ( \TYPO3\CMS\Belog\Domain\Model\Constraint  $constraint)
protected

If the user is in a workspace different than LIVE, we force to show only log entries from the selected workspace, and the workspace selector is not shown.

Parameters
\TYPO3\CMS\Belog\Domain\Model\Constraint$constraint
Returns
void

Definition at line 295 of file belog/Classes/Controller/AbstractController.php.

References $GLOBALS.

Referenced by AbstractController\indexAction().

getConstraintFromBeUserData ( )
protected

Get module states (the constraint object) from user data

Returns
|NULL

Definition at line 178 of file belog/Classes/Controller/AbstractController.php.

References $GLOBALS.

Referenced by AbstractController\indexAction().

initializeAction ( )

init all actions

Returns
void

Definition at line 112 of file belog/Classes/Controller/AbstractController.php.

initializeIndexAction ( )

Initialize index action

Returns
void
Exceptions
RuntimeException

Definition at line 125 of file belog/Classes/Controller/AbstractController.php.

References $GLOBALS.

initializeView ( ViewInterface  $view)
protected

Initialize the view

Parameters
ViewInterface$viewThe view
Returns
void

Definition at line 99 of file belog/Classes/Controller/AbstractController.php.

injectLogEntryRepository ( \TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository  $logEntryRepository)
Parameters
\TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository$logEntryRepository

Definition at line 88 of file belog/Classes/Controller/AbstractController.php.

References AbstractController\$logEntryRepository.

persistConstraintInBeUserData ( \TYPO3\CMS\Belog\Domain\Model\Constraint  $constraint)
protected

Save current constraint object in be user settings (uC)

Parameters
\TYPO3\CMS\Belog\Domain\Model\Constraint$constraint
Returns
void

Definition at line 193 of file belog/Classes/Controller/AbstractController.php.

References $GLOBALS.

Referenced by AbstractController\indexAction().

setStartAndEndTimeFromTimeSelector ( \TYPO3\CMS\Belog\Domain\Model\Constraint  $constraint)
protected

Calculate the start- and end timestamp from the different time selector options

Parameters
\TYPO3\CMS\Belog\Domain\Model\Constraint$constraint
Returns
void

Definition at line 330 of file belog/Classes/Controller/AbstractController.php.

References $GLOBALS.

Referenced by SystemInformationController\appendMessage(), and AbstractController\indexAction().

Member Data Documentation

$isInPageContext = false
protected
$logEntryRepository = null
protected
$pageId = 0
protected
$view
protected
const TIMEFRAME_CUSTOM = 30
const TIMEFRAME_LAST31DAYS = 12
const TIMEFRAME_LASTMONTH = 11
const TIMEFRAME_LASTSEVENDAYS = 2
const TIMEFRAME_LASTWEEK = 1
const TIMEFRAME_THISMONTH = 10
const TIMEFRAME_THISWEEK = 0