TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Belog\Controller\AbstractController Class Reference
Inheritance diagram for TYPO3\CMS\Belog\Controller\AbstractController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\AbstractController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface TYPO3\CMS\Belog\Controller\SystemInformationController TYPO3\CMS\Belog\Controller\ToolsController TYPO3\CMS\Belog\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\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 TYPO3\CMS\Extbase\Mvc\Controller\ActionController
static getActionMethodParameters ($objectManager)
 

Detailed Description

Abstract class to show log entries from sys_log

Definition at line 24 of file AbstractController.php.

Member Function Documentation

◆ createPageDepthOptions()

TYPO3\CMS\Belog\Controller\AbstractController::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 AbstractController.php.

References TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

Referenced by TYPO3\CMS\Belog\Controller\AbstractController\indexAction().

◆ createUserAndGroupListForSelectOptions()

TYPO3\CMS\Belog\Controller\AbstractController::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 AbstractController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getGroupNames(), TYPO3\CMS\Backend\Utility\BackendUtility\getUserNames(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

Referenced by TYPO3\CMS\Belog\Controller\AbstractController\indexAction().

◆ forceWorkspaceSelectionIfInWorkspace()

TYPO3\CMS\Belog\Controller\AbstractController::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 AbstractController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Belog\Controller\AbstractController\indexAction().

◆ getConstraintFromBeUserData()

TYPO3\CMS\Belog\Controller\AbstractController::getConstraintFromBeUserData ( )
protected

Get module states (the constraint object) from user data

Returns
|NULL

Definition at line 178 of file AbstractController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Belog\Controller\AbstractController\indexAction().

◆ indexAction()

◆ initializeAction()

TYPO3\CMS\Belog\Controller\AbstractController::initializeAction ( )

init all actions

Returns
void

Definition at line 112 of file AbstractController.php.

◆ initializeIndexAction()

TYPO3\CMS\Belog\Controller\AbstractController::initializeIndexAction ( )

Initialize index action

Returns
void
Exceptions

Definition at line 125 of file AbstractController.php.

References $GLOBALS.

◆ initializeView()

TYPO3\CMS\Belog\Controller\AbstractController::initializeView ( ViewInterface  $view)
protected

Initialize the view

Parameters
ViewInterface$viewThe view
Returns
void

Definition at line 99 of file AbstractController.php.

◆ injectLogEntryRepository()

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

Definition at line 88 of file AbstractController.php.

References TYPO3\CMS\Belog\Controller\AbstractController\$logEntryRepository.

◆ persistConstraintInBeUserData()

TYPO3\CMS\Belog\Controller\AbstractController::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 AbstractController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Belog\Controller\AbstractController\indexAction().

◆ setStartAndEndTimeFromTimeSelector()

TYPO3\CMS\Belog\Controller\AbstractController::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 AbstractController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Belog\Controller\SystemInformationController\appendMessage(), and TYPO3\CMS\Belog\Controller\AbstractController\indexAction().

Member Data Documentation

◆ $isInPageContext

TYPO3\CMS\Belog\Controller\AbstractController::$isInPageContext = false
protected

Definition at line 66 of file AbstractController.php.

◆ $logEntryRepository

TYPO3\CMS\Belog\Controller\AbstractController::$logEntryRepository = null
protected

◆ $pageId

TYPO3\CMS\Belog\Controller\AbstractController::$pageId = 0
protected

Definition at line 73 of file AbstractController.php.

◆ $view

TYPO3\CMS\Belog\Controller\AbstractController::$view
protected

Definition at line 83 of file AbstractController.php.

◆ TIMEFRAME_CUSTOM

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_CUSTOM = 30

Definition at line 59 of file AbstractController.php.

◆ TIMEFRAME_LAST31DAYS

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_LAST31DAYS = 12

Definition at line 54 of file AbstractController.php.

◆ TIMEFRAME_LASTMONTH

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_LASTMONTH = 11

Definition at line 49 of file AbstractController.php.

◆ TIMEFRAME_LASTSEVENDAYS

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_LASTSEVENDAYS = 2

Definition at line 39 of file AbstractController.php.

◆ TIMEFRAME_LASTWEEK

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_LASTWEEK = 1

Definition at line 34 of file AbstractController.php.

◆ TIMEFRAME_THISMONTH

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_THISMONTH = 10

Definition at line 44 of file AbstractController.php.

◆ TIMEFRAME_THISWEEK

const TYPO3\CMS\Belog\Controller\AbstractController::TIMEFRAME_THISWEEK = 0

Definition at line 29 of file AbstractController.php.