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

Public Member Functions

 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$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

 getRecordsFromTable ($table)
 
 getWhereClause ()
 
- Protected Member Functions inherited from 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 AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

- Public Attributes inherited from 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 ( $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 AbstractUpdate\getDatabaseConnection(), FilesReplacePermissionUpdate\getWhereClause(), and AbstractUpdate\isWizardDone().

getRecordsFromTable (   $table)
protected

Retrieve every record which needs to be processed

Parameters
string$table
Returns
array

Definition at line 106 of file FilesReplacePermissionUpdate.php.

References AbstractUpdate\getDatabaseConnection(), and FilesReplacePermissionUpdate\getWhereClause().

Referenced by FilesReplacePermissionUpdate\performUpdate().

getWhereClause ( )
protected

Returns the where clause for database requests

Returns
string

Definition at line 118 of file FilesReplacePermissionUpdate.php.

Referenced by FilesReplacePermissionUpdate\checkForUpdate(), and FilesReplacePermissionUpdate\getRecordsFromTable().

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 AbstractUpdate\getDatabaseConnection(), FilesReplacePermissionUpdate\getRecordsFromTable(), and AbstractUpdate\markWizardAsDone().

Member Data Documentation

$title = 'Set the "Files:replace" permission for all BE user/groups with "Files:write" set'
protected

Definition at line 25 of file FilesReplacePermissionUpdate.php.