TYPO3  7.6
Protected Member Functions | Protected Attributes | List of all members
AbstractController Class Reference
Inheritance diagram for AbstractController:
AjaxController StepController 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 = array()
 

Detailed Description

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

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

Member Function Documentation

addSessionMessages ( array  $messages)
protected

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

Parameters
array<\TYPO3\CMS\Install\Status\StatusInterface>$messages

Definition at line 401 of file install/Classes/Controller/AbstractController.php.

Referenced by StepController\executeSpecificStep().

checkSessionLifetime ( )
protected

Check if session expired.

Returns
void

Definition at line 165 of file install/Classes/Controller/AbstractController.php.

Referenced by StepController\execute(), ToolController\execute(), and AjaxController\execute().

getAction ( )
protected

Retrieve parameter from GET or POST and sanitize

Exceptions
Exception
Returns
string Empty string if no action is given or sanitized action string

Definition at line 490 of file install/Classes/Controller/AbstractController.php.

References GeneralUtility\_GP().

Referenced by StepController\executeSpecificStep(), and StepController\outputSpecificStep().

getPostValues ( )
protected

Get POST form values of install tool. All POST data is secured by form token protection, except in very installation step.

Returns
array

Definition at line 517 of file install/Classes/Controller/AbstractController.php.

References GeneralUtility\_POST().

Referenced by StepController\executeSpecificStep(), and StepController\outputSpecificStep().

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 install/Classes/Controller/AbstractController.php.

References $GLOBALS.

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 install/Classes/Controller/AbstractController.php.

References $GLOBALS.

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 install/Classes/Controller/AbstractController.php.

output (   $content = '')
protected

Output content. WARNING: This exits the script execution!

Parameters
string$contentContent to output

Definition at line 594 of file install/Classes/Controller/AbstractController.php.

Referenced by AbstractController\outputLoginFormIfNotAuthorized(), and StepController\outputSpecificStep().

outputLoginFormIfNotAuthorized ( )
protected

Show login for if user is not authorized yet and if not in first installation process.

Returns
void

Definition at line 271 of file install/Classes/Controller/AbstractController.php.

References AbstractController\output().

Referenced by StepController\execute(), and ToolController\execute().

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 install/Classes/Controller/AbstractController.php.

References GeneralUtility\_GP().

Referenced by StepController\executeSpecificStep(), StepController\outputSpecificStep(), and StepController\redirectToTool().

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 install/Classes/Controller/AbstractController.php.

Member Data Documentation

$authenticationActions = array()
protected
$objectManager = null
protected
$session = null
protected