TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate:
TYPO3\CMS\Install\Updates\AbstractUpdate

Public Member Functions

 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

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

Protected Attributes

 $title = 'Set the "Files:replace" permission for all BE user/groups with "Files:write" set'
 
- 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 goes through all users and groups and set the "replaceFile" permission if "writeFile" is set

Definition at line 20 of file FilesReplacePermissionUpdate.php.

Member Function Documentation

◆ checkForUpdate()

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

Checks whether updates are required.

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

Definition at line 33 of file FilesReplacePermissionUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\getDatabaseConnection(), TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate\getWhereClause(), and TYPO3\CMS\Install\Updates\AbstractUpdate\isWizardDone().

◆ getRecordsFromTable()

TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate::getRecordsFromTable (   $table)
protected

◆ getWhereClause()

TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate::getWhereClause ( )
protected

◆ performUpdate()

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

Performs the accordant updates.

Parameters
array&$dbQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
bool Whether everything went smoothly or not

Definition at line 74 of file FilesReplacePermissionUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\getDatabaseConnection(), TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate\getRecordsFromTable(), and TYPO3\CMS\Install\Updates\AbstractUpdate\markWizardAsDone().

Member Data Documentation

◆ $title

TYPO3\CMS\Install\Updates\FilesReplacePermissionUpdate::$title = 'Set the "Files:replace" permission for all BE user/groups with "Files:write" set'
protected

Definition at line 25 of file FilesReplacePermissionUpdate.php.