TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WorkspacesNotificationSettingsUpdate Class Reference
Inheritance diagram for WorkspacesNotificationSettingsUpdate:
AbstractUpdate

Public Member Functions

 checkForUpdate (&$description)
 
 performUpdate (array &$databaseQueries, &$customMessages)
 
- Public Member Functions inherited from AbstractUpdate
 getTitle ()
 
 setTitle ($title)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 shouldRenderWizard ()
 
 shouldRenderNextButton ()
 
 checkIfTableExists ($table)
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 

Protected Member Functions

 prepareWorkspaceUpdate (array $workspaceRecord)
 
 prepareStageUpdate (array $stageRecord)
 
 mapSettings (array $record, array $update, $from= '', $to= '')
 
- Protected Member Functions inherited from AbstractUpdate
 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $title = 'Migrate the workspaces notification settings to the enhanced schema'
 
- Protected Attributes inherited from AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

- Public Attributes inherited from AbstractUpdate
 $pObj
 
 $userInput
 
 $versionNumber
 

Detailed Description

Migrate the workspaces notification settings to the enhanced schema.

Definition at line 22 of file WorkspacesNotificationSettingsUpdate.php.

Member Function Documentation

checkForUpdate ( $description)

Checks if an update is needed

Parameters
string&$descriptionThe description for the update
Returns
bool Whether an update is needed (TRUE) or not (FALSE)

Definition at line 35 of file WorkspacesNotificationSettingsUpdate.php.

References AbstractUpdate\getDatabaseConnection(), ExtensionManagementUtility\isLoaded(), AbstractUpdate\isWizardDone(), and AbstractUpdate\markWizardAsDone().

mapSettings ( array  $record,
array  $update,
  $from = '',
  $to = '' 
)
protected

Maps settings to new meaning.

Parameters
array$record
array$update
string$from
string$to
Returns
array

Definition at line 147 of file WorkspacesNotificationSettingsUpdate.php.

References elseif.

Referenced by WorkspacesNotificationSettingsUpdate\prepareStageUpdate(), and WorkspacesNotificationSettingsUpdate\prepareWorkspaceUpdate().

performUpdate ( array &  $databaseQueries,
$customMessages 
)

Perform the database updates for workspace records

Parameters
array&$databaseQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
bool

Definition at line 76 of file WorkspacesNotificationSettingsUpdate.php.

References AbstractUpdate\getDatabaseConnection(), AbstractUpdate\markWizardAsDone(), WorkspacesNotificationSettingsUpdate\prepareStageUpdate(), and WorkspacesNotificationSettingsUpdate\prepareWorkspaceUpdate().

prepareStageUpdate ( array  $stageRecord)
protected

Prepares SQL update for stage records.

Parameters
array$stageRecord
Returns
array|null

Definition at line 127 of file WorkspacesNotificationSettingsUpdate.php.

References WorkspacesNotificationSettingsUpdate\mapSettings().

Referenced by WorkspacesNotificationSettingsUpdate\performUpdate().

prepareWorkspaceUpdate ( array  $workspaceRecord)
protected

Prepares SQL updates for workspace records.

Parameters
array$workspaceRecord
Returns
array|NULL

Definition at line 108 of file WorkspacesNotificationSettingsUpdate.php.

References WorkspacesNotificationSettingsUpdate\mapSettings().

Referenced by WorkspacesNotificationSettingsUpdate\performUpdate().

Member Data Documentation

$title = 'Migrate the workspaces notification settings to the enhanced schema'
protected

Definition at line 27 of file WorkspacesNotificationSettingsUpdate.php.