TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractAction Class Reference
Inheritance diagram for AbstractAction:
ActionInterface AbstractAjaxAction FirstInstallAction InstallToolDisabledAction InstallToolPasswordNotSetAction LoginForm AbstractStepAction About AllConfiguration CleanUp Configuration FolderStructure ImportantActions LoadExtensions SystemEnvironment TestSetup UpgradeAnalysis UpgradeWizard

Public Member Functions

 handle ()
 
 setToken ($token)
 
 setController ($controller)
 
 setAction ($action)
 
 setPostValues (array $postValues)
 
 setLastError (array $lastError)
 
 setMessages (array $messages=[])
 

Protected Member Functions

 initializeHandle ()
 
 executeAction ()
 
 getContext ()
 
 loadExtLocalconfDatabaseAndExtTables ()
 
 getHashedPassword ($password)
 

Protected Attributes

 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = []
 
 $lastError = []
 
 $messages = []
 

Detailed Description

General purpose controller action helper methods and bootstrap

Definition at line 23 of file AbstractAction.php.

Member Function Documentation

executeAction ( )
abstractprotected

Executes the action

Returns
string|array Rendered content

Referenced by AbstractAjaxAction\handle(), and AbstractAction\handle().

getContext ( )
protected

Context determines if the install tool is called within backend or standalone

Returns
string Either 'standalone' or 'backend'

Definition at line 179 of file AbstractAction.php.

References GeneralUtility\_GP().

getHashedPassword (   $password)
protected

This function returns a salted hashed key.

Parameters
string$password
Returns
string

Definition at line 239 of file AbstractAction.php.

References SaltFactory\getSaltingInstance().

handle ( )

Handles the action

Returns
string Rendered content

Implements ActionInterface.

Definition at line 65 of file AbstractAction.php.

References AbstractAction\executeAction(), and AbstractAction\initializeHandle().

initializeHandle ( )
protected

Initialize the handle action, sets up fluid stuff and assigns default variables.

Returns
void

Definition at line 76 of file AbstractAction.php.

References $GLOBALS, GeneralUtility\getFileAbsFileName(), and GeneralUtility\makeInstance().

Referenced by AbstractAjaxAction\handle(), and AbstractAction\handle().

loadExtLocalconfDatabaseAndExtTables ( )
protected

Some actions like the database analyzer and the upgrade wizards need additional bootstrap actions performed.

Those actions can potentially fatal if some old extension is loaded that triggers a fatal in ext_localconf or ext_tables code! Use only if really needed.

Returns
void

Definition at line 222 of file AbstractAction.php.

References Bootstrap\getInstance().

Referenced by DatabaseData\importDatabaseData(), and AbstractCoreUpdate\initializeHandle().

setAction (   $action)

Set action name. This is usually similar to the class name, only for loginForm, the action is login

Parameters
string$actionName of target action for forms
Returns
void

Implements ActionInterface.

Definition at line 138 of file AbstractAction.php.

References AbstractAction\$action.

setController (   $controller)

Set action group. Either string 'step', 'tool' or 'common'

Parameters
string$controllerController name
Returns
void

Implements ActionInterface.

Definition at line 126 of file AbstractAction.php.

References AbstractAction\$controller.

setLastError ( array  $lastError)

Set the last error array as returned by error_get_last()

Parameters
array$lastError

Implements ActionInterface.

Definition at line 159 of file AbstractAction.php.

References AbstractAction\$lastError.

setMessages ( array  $messages = [])

Status messages from controller

Parameters
array<TYPO3> $messages

Implements ActionInterface.

Definition at line 169 of file AbstractAction.php.

References AbstractAction\$messages.

setPostValues ( array  $postValues)

Set POST form values of install tool

Parameters
array$postValues
Returns
void

Implements ActionInterface.

Definition at line 149 of file AbstractAction.php.

References AbstractAction\$postValues.

setToken (   $token)

Set form protection token

Parameters
string$tokenForm protection token
Returns
void

Implements ActionInterface.

Definition at line 115 of file AbstractAction.php.

References AbstractAction\$token.

Member Data Documentation

$controller = ''
protected

Definition at line 33 of file AbstractAction.php.

Referenced by AbstractAction\setController().

$lastError = []
protected
$messages = []
protected
$token = ''
protected

Definition at line 43 of file AbstractAction.php.

Referenced by AbstractAction\setToken().

$view = null
protected

Definition at line 28 of file AbstractAction.php.