TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Install\Updates\FilemountUpdateWizard Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\FilemountUpdateWizard:
TYPO3\CMS\Install\Updates\AbstractUpdate Tx_Install_Updates_File_FilemountUpdateWizard

Public Member Functions

 __construct ()
 
 init ()
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 
- Public Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 getTitle ()
 
 setTitle ($title)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 shouldRenderWizard ()
 
 shouldRenderNextButton ()
 
 checkIfTableExists ($table)
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 

Protected Member Functions

 migrateAbsoluteFilemounts ()
 
 migrateRelativeFilemounts ()
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $title = 'Migrate existing filemounts to be file abstraction layer compatible.'
 
 $db
 
 $sqlQueries = array()
 
 $storage
 
 $storageRepository
 
- Protected Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $pObj
 
 $userInput
 
 $versionNumber
 

Detailed Description

Upgrade wizard which checks all existing filemounts and upgrades this them in case we have: a) absolute filemounts (base = 0) without related storage b) relative filemounts (base = 1) which aren't related to a storage further we assume that all other filemounts (base > 1) are already related to a storage

Author
Tolleiv Nietsch typo3.nosp@m.@tol.nosp@m.leiv..nosp@m.de

Definition at line 28 of file FilemountUpdateWizard.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::__construct ( )

Creates this object

Definition at line 58 of file FilemountUpdateWizard.php.

References $GLOBALS.

Member Function Documentation

◆ checkForUpdate()

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::checkForUpdate ( $description)

Checks if an update is needed.

Parameters
string&$descriptionThe description for the update
Returns
boolean TRUE if an update is needed, FALSE otherwise

Definition at line 77 of file FilemountUpdateWizard.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), and TYPO3\CMS\Install\Updates\AbstractUpdate\isWizardDone().

◆ init()

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::init ( )

Initialize the storage repository.

Definition at line 65 of file FilemountUpdateWizard.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Install\Updates\FilemountUpdateWizard\performUpdate().

◆ migrateAbsoluteFilemounts()

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::migrateAbsoluteFilemounts ( )
protected

Takes the existing absolute filemounts (base=0) and migrates them to use the existing fileadmin/ storage or a new storage.

Returns
void

Definition at line 117 of file FilemountUpdateWizard.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause().

Referenced by TYPO3\CMS\Install\Updates\FilemountUpdateWizard\performUpdate().

◆ migrateRelativeFilemounts()

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::migrateRelativeFilemounts ( )
protected

Relative filemounts are transformed to relate to our fileadmin/ storage and their path is modified to be a valid resource location

Returns
void

Definition at line 154 of file FilemountUpdateWizard.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause().

Referenced by TYPO3\CMS\Install\Updates\FilemountUpdateWizard\performUpdate().

◆ performUpdate()

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::performUpdate ( array &  $dbQueries,
$customMessages 
)

Performs the database and folder update.

Parameters
array&$dbQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
boolean TRUE on success, FALSE on error

Definition at line 94 of file FilemountUpdateWizard.php.

References TYPO3\CMS\Install\Updates\FilemountUpdateWizard\$storage, TYPO3\CMS\Install\Updates\FilemountUpdateWizard\init(), TYPO3\CMS\Install\Updates\AbstractUpdate\markWizardAsDone(), TYPO3\CMS\Install\Updates\FilemountUpdateWizard\migrateAbsoluteFilemounts(), and TYPO3\CMS\Install\Updates\FilemountUpdateWizard\migrateRelativeFilemounts().

Member Data Documentation

◆ $db

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::$db
protected

Definition at line 38 of file FilemountUpdateWizard.php.

◆ $sqlQueries

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::$sqlQueries = array()
protected

Definition at line 43 of file FilemountUpdateWizard.php.

◆ $storage

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::$storage
protected

◆ $storageRepository

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::$storageRepository
protected

Definition at line 53 of file FilemountUpdateWizard.php.

◆ $title

TYPO3\CMS\Install\Updates\FilemountUpdateWizard::$title = 'Migrate existing filemounts to be file abstraction layer compatible.'
protected

Definition at line 33 of file FilemountUpdateWizard.php.