TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractAction Class Reference
Inheritance diagram for AbstractAction:
ActionInterface AbstractAjaxAction FirstInstallAction InstallToolDisabledAction InstallToolPasswordNotSetAction LoginForm AbstractStepAction About AllConfiguration CleanUp Configuration FolderStructure ImportantActions LoadExtensions SystemEnvironment TestSetup UpgradeWizard

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
 
 injectView (\TYPO3\CMS\Install\View\FailsafeView $view)
 
 handle ()
 
 setToken ($token)
 
 setController ($controller)
 
 setAction ($action)
 
 setPostValues (array $postValues)
 
 setLastError (array $lastError)
 
 setMessages (array $messages=array())
 

Protected Member Functions

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

Protected Attributes

 $objectManager = null
 
 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = array()
 
 $lastError = array()
 
 $messages = array()
 

Detailed Description

General purpose controller action helper methods and bootstrap

Definition at line 22 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 217 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 277 of file AbstractAction.php.

handle ( )

Handles the action

Returns
string Rendered content

Implements ActionInterface.

Definition at line 89 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 100 of file AbstractAction.php.

References $GLOBALS, and GeneralUtility\getFileAbsFileName().

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

injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManager  $objectManager)

Do NOT refactor to use annotation, as failsafe handling would not work any more

Parameters
\TYPO3\CMS\Extbase\Object\ObjectManager$objectManager

Definition at line 34 of file AbstractAction.php.

References AbstractAction\$objectManager.

injectView ( \TYPO3\CMS\Install\View\FailsafeView  $view)

Do NOT refactor to use annotation, as failsafe handling would not work any more

Parameters
\TYPO3\CMS\Install\View\FailsafeView$view

Definition at line 49 of file AbstractAction.php.

References AbstractAction\$view.

isDbalEnabled ( )
protected

Return TRUE if dbal and adodb extension is loaded

Returns
bool TRUE if dbal and adodb is loaded

Definition at line 202 of file AbstractAction.php.

Referenced by DatabaseConnect\executeAction(), DatabaseConnect\getConfiguredOrDefaultPort(), and DatabaseConnect\needsExecution().

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 260 of file AbstractAction.php.

Referenced by UpgradeWizard\executeAction(), 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 161 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 149 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 182 of file AbstractAction.php.

References AbstractAction\$lastError.

setMessages ( array  $messages = array())

Status messages from controller

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

Implements ActionInterface.

Definition at line 192 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 172 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 138 of file AbstractAction.php.

References AbstractAction\$token.

Member Data Documentation

$action = ''
protected
$controller = ''
protected

Definition at line 57 of file AbstractAction.php.

Referenced by AbstractAction\setController().

$lastError = array()
protected
$messages = array()
protected

Definition at line 82 of file AbstractAction.php.

Referenced by AbstractAction\setMessages().

$objectManager = null
protected

Definition at line 27 of file AbstractAction.php.

Referenced by AbstractAction\injectObjectManager().

$postValues = array()
protected
$token = ''
protected

Definition at line 67 of file AbstractAction.php.

Referenced by AbstractAction\setToken().

$view = null
protected

Definition at line 42 of file AbstractAction.php.

Referenced by AbstractAction\injectView().