TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Controller\AbstractController Class Reference
Inheritance diagram for TYPO3\CMS\Install\Controller\AbstractController:
TYPO3\CMS\Install\Controller\AjaxController TYPO3\CMS\Install\Controller\StepController TYPO3\CMS\Install\Controller\ToolController

Protected Member Functions

 checkSessionLifetime ()
 
 outputLoginFormIfNotAuthorized ()
 
 addSessionMessages (array $messages)
 
 isDbalEnabled ()
 
 validateAuthenticationAction ($action)
 
 getAction ()
 
 getPostValues ()
 
 redirect ($controller='', $action='')
 
 output ($content='')
 
 getSenderEmailAddress ()
 
 getSenderEmailName ()
 

Protected Attributes

 $objectManager = null
 
 $session = null
 
 $authenticationActions = []
 

Detailed Description

Controller abstract for shared parts of Tool, Step and Ajax controller

Definition at line 24 of file AbstractController.php.

Member Function Documentation

◆ addSessionMessages()

TYPO3\CMS\Install\Controller\AbstractController::addSessionMessages ( array  $messages)
protected

Add status messages to session. Used to output messages between requests, especially in step controller

Parameters
array<

Definition at line 401 of file AbstractController.php.

References $GLOBALS, TYPO3\CMS\Install\Controller\AbstractController\$objectManager, TYPO3\CMS\Install\Controller\AbstractController\isDbalEnabled(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Install\Controller\StepController\executeSpecificStep().

◆ checkSessionLifetime()

◆ getAction()

◆ getPostValues()

◆ getSenderEmailAddress()

TYPO3\CMS\Install\Controller\AbstractController::getSenderEmailAddress ( )
protected

Get sender address from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'] If this setting is empty fall back to 'no-re.nosp@m.ply@.nosp@m.examp.nosp@m.le.c.nosp@m.om'

Returns
string Returns an email address

Definition at line 610 of file AbstractController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\AbstractController\outputLoginFormIfNotAuthorized().

◆ getSenderEmailName()

TYPO3\CMS\Install\Controller\AbstractController::getSenderEmailName ( )
protected

Gets sender name from configuration ['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'] If this setting is empty, it falls back to a default string.

Returns
string

Definition at line 624 of file AbstractController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\AbstractController\outputLoginFormIfNotAuthorized().

◆ isDbalEnabled()

TYPO3\CMS\Install\Controller\AbstractController::isDbalEnabled ( )
protected

Return TRUE if dbal and adodb extension is loaded.

Returns
bool TRUE if dbal and adodb is loaded

Definition at line 458 of file AbstractController.php.

Referenced by TYPO3\CMS\Install\Controller\AbstractController\addSessionMessages().

◆ output()

TYPO3\CMS\Install\Controller\AbstractController::output (   $content = '')
protected

◆ outputLoginFormIfNotAuthorized()

◆ redirect()

TYPO3\CMS\Install\Controller\AbstractController::redirect (   $controller = '',
  $action = '' 
)
protected

HTTP redirect to self, preserving allowed GET variables. WARNING: This exits the script execution!

Parameters
string$controllerCan be set to 'tool' to redirect from step to tool controller
string$actionSet specific action for next request, used in step controller to specify next step
Returns
void

Definition at line 534 of file AbstractController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().

Referenced by TYPO3\CMS\Install\Controller\AbstractController\checkSessionLifetime(), TYPO3\CMS\Install\Controller\ToolController\execute(), TYPO3\CMS\Install\Controller\StepController\executeSpecificStep(), TYPO3\CMS\Install\Controller\StepController\outputSpecificStep(), and TYPO3\CMS\Install\Controller\StepController\redirectToTool().

◆ validateAuthenticationAction()

TYPO3\CMS\Install\Controller\AbstractController::validateAuthenticationAction (   $action)
protected

Check given action name is one of the allowed actions.

Parameters
string$actionGiven action to validate
Exceptions
Exception

Definition at line 474 of file AbstractController.php.

Referenced by TYPO3\CMS\Install\Controller\ToolController\getLastError(), TYPO3\CMS\Install\Controller\AjaxController\handleSessionLifeTimeExpired(), and TYPO3\CMS\Install\Controller\StepController\outputSpecificStep().

Member Data Documentation

◆ $authenticationActions

TYPO3\CMS\Install\Controller\AbstractController::$authenticationActions = []
protected

Definition at line 39 of file AbstractController.php.

◆ $objectManager

TYPO3\CMS\Install\Controller\AbstractController::$objectManager = null
protected

◆ $session

TYPO3\CMS\Install\Controller\AbstractController::$session = null
protected

Definition at line 34 of file AbstractController.php.