TYPO3 CMS  TYPO3_6-2
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\ToolsController TYPO3\CMS\Belog\Controller\WebInfoController

Public Member Functions

 initializeIndexAction ()
 
 indexAction (\TYPO3\CMS\Belog\Domain\Model\Constraint $constraint=NULL)
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 canProcessRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 getControllerContext ()
 
 __construct ()
 
 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectFlashMessageContainer (\TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer $flashMessageContainer)
 
 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)
 
 initializeControllerArgumentsBaseValidators ()
 

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

 getConstraintFromBeUserData ()
 
 persistConstraintInBeUserData (\TYPO3\CMS\Belog\Domain\Model\Constraint $constraint)
 
 configurePropertyMapperForDateTimeFormat (\TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration $propertyMapperDate)
 
 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 ()
 
 initializeActionMethodValidators ()
 
 resolveActionMethodName ()
 
 callActionMethod ()
 
 emitBeforeCallActionMethodSignal (array $preparedArguments)
 
 setViewConfiguration (ViewInterface $view)
 
 getViewProperty ($extbaseFrameworkConfiguration, $setting, $deprecatedSetting='')
 
 resolveViewObjectName ()
 
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
 errorAction ()
 
 getErrorFlashMessage ()
 
 checkRequestHash ()
 
 clearCacheOnError ()
 
- 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
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 $reflectionService
 
 $cacheService
 
 $view = NULL
 
 $viewObjectNamePattern = 'Tx_@extension_View_@controller_@action@format'
 
 $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
 $viewFormatToObjectNameMap = array()
 
 $defaultViewObjectName = 'TYPO3\\CMS\\Fluid\\View\\TemplateView'
 
 $actionMethodName = 'indexAction'
 
 $errorMethodName = 'errorAction'
 
 $mvcPropertyMappingConfigurationService
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 $signalSlotDispatcher
 
 $objectManager
 
 $uriBuilder
 
 $extensionName
 
 $settings
 
 $request
 
 $response
 
 $deprecatedPropertyMapper
 
 $validatorResolver
 
 $arguments
 
 $argumentsMappingResults
 
 $supportedRequestTypes = array('TYPO3\\CMS\\Extbase\\Mvc\\Request')
 
 $controllerContext
 
 $flashMessageContainer
 
 $configurationManager
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Controller\ActionController
static getActionMethodParameters ($objectManager)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Abstract class to show log entries from sys_log

Author
Christian Kuhn lolli.nosp@m.@sch.nosp@m.warzb.nosp@m.u.ch

Definition at line 22 of file AbstractController.php.

Member Function Documentation

◆ configurePropertyMapperForDateTimeFormat()

TYPO3\CMS\Belog\Controller\AbstractController::configurePropertyMapperForDateTimeFormat ( \TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration  $propertyMapperDate)
protected

Configure the property mapper to expect date strings in configured BE format

Parameters
\TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration$propertyMapperDate
Returns
void

Definition at line 209 of file AbstractController.php.

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

◆ 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 282 of file AbstractController.php.

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 220 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 267 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 145 of file AbstractController.php.

References $GLOBALS.

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

◆ indexAction()

◆ initializeIndexAction()

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

Initialize index action

Returns
void
Exceptions

Definition at line 85 of file AbstractController.php.

References $GLOBALS, and TYPO3\CMS\Belog\Controller\AbstractController\configurePropertyMapperForDateTimeFormat().

◆ 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 159 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 298 of file AbstractController.php.

References $GLOBALS.

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

Member Data Documentation

◆ $isInPageContext

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

Definition at line 64 of file AbstractController.php.

◆ $logEntryRepository

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

Definition at line 77 of file AbstractController.php.

◆ $pageId

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

Definition at line 71 of file AbstractController.php.

◆ TIMEFRAME_CUSTOM

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

Definition at line 57 of file AbstractController.php.

◆ TIMEFRAME_LAST31DAYS

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

Definition at line 52 of file AbstractController.php.

◆ TIMEFRAME_LASTMONTH

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

Definition at line 47 of file AbstractController.php.

◆ TIMEFRAME_LASTSEVENDAYS

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

Definition at line 37 of file AbstractController.php.

◆ TIMEFRAME_LASTWEEK

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

Definition at line 32 of file AbstractController.php.

◆ TIMEFRAME_THISMONTH

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

Definition at line 42 of file AbstractController.php.

◆ TIMEFRAME_THISWEEK

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

Definition at line 27 of file AbstractController.php.